Re: Errors Trying to buildCruiseControlfromsources

Steve Murphy <[email protected]> Fri, 9 Sep 2011 13:42:44 +0100
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Having another look at the original fail message and thinking about the 
change I had to make to run SysUtilMock, made me look at the CLASSPATH that 
was set in the environment.  It too included 'Program Files(x86)', so I 
changed that to use C:\PROGRA~2 like before.  The release now successfully 
runs through, so it would seem that the CLASSPATH was indeed the issue.

Does the release.bat script mean I do not have to execute the Ant build 
scripts under main, reporting/jsp & reporting/dashboard?

Thanks for the help Dan.

-----Original Message----- 
From: Steve Murphy
Sent: Friday, September 09, 2011 10:58 AM
To: [email protected] ; Daniel Tihelka
Cc: Daniel Tihelka
Subject: Re: [Cruisecontrol-user] Errors Trying to 
buildCruiseControlfromsources

I notice that the cat command has dropped the -P 'ID bit when it's displayed
in the error message.

If I replace the single quotes in the command with double quotes the program
seems to execute ok

C:\cruise>java -cp
C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\cruise\main\target\classes\;C:\cruise\main\target\test-classes\;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;.;C:\cruise\main\lib\log4j.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~2\Java\jre6\lib\ext\QTJava.zip
net.sourceforge.cruisecontrol.testutil.SysUtilMock -C cat -P "ID 01" -V
MyTextFile.txt
ID 01: Executing command:
java[net.sourceforge.cruisecontrol.testutil.SysUtilMock] -C cat -V
MyTextFile.txt



-----Original Message----- 
From: Steve Murphy
Sent: Friday, September 09, 2011 10:39 AM
To: Daniel Tihelka
Cc: [email protected] ; Daniel Tihelka
Subject: Re: [Cruisecontrol-user] Errors Trying to build
CruiseControlfromsources

Yes it is in the
C:\cruise\main\target\test-classes\net\sourceforge\cruisecontrol\testutil
folder.

First I was getting some 'java.lang.NoClassDefFoundError' exceptions, but I
tidied up the class path being passed and (removed some spaces & replaced
'C:\Program files (x86)' with 'C:\PROGRA~2') now I get following error (also
occurs when I use the full path to MyTextFile.txt)

'ID: Executing command:
java[net.sourceforge.cruisecontrol.testutil.SysUtilMock] -C cat 01' -V
MyTextFile.txt
'ID: Command failed with exception:
'ID: java.io.FileNotFoundException: 01' (The system cannot find the file
specified)
'ID:    at java.io.FileInputStream.open(Native Method)
'ID:    at java.io.FileInputStream.<init>(Unknown Source)
'ID:    at java.io.FileInputStream.<init>(Unknown Source)
'ID:    at
net.sourceforge.cruisecontrol.testutil.SysUtilMock.cat(SysUtilMock.java:373)
'ID:    at
net.sourceforge.cruisecontrol.testutil.SysUtilMock.main(SysUtilMock.java:293)

Does the text file have to be in a particular location?

> Are you familiar with java development? Are you able to get working the
> execution of:

Unfortunately it's been a very long time since I did any java development.

Thanks,
Steve

-----Original Message----- 
From: Daniel Tihelka
Sent: Friday, September 09, 2011 9:41 AM
To: Steve Murphy
Cc: Daniel Tihelka ; [email protected]
Subject: Re: [Cruisecontrol-user] Errors Trying to build CruiseControl
fromsources


------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT
space for its ease of implementation, lower cost, and increased
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user


------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT
space for its ease of implementation, lower cost, and increased
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user 


------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/