Re: Errors Trying to build CruiseControl fromsources

Daniel Tihelka <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
One more ask. Could you, please, apply the attached patch (or simply to copy 
it to the appropriate location in CC sources) and run the test again?

It seems that the test is not able to run "executables" (which are actually 
java classes) used to test correct piping in PipedExecBuilder. Therefore, I 
need to know which commands the test actually tries to start. I guess that the 
problem is in java's CLASSPATH, which does not point to the appropriate 
classes. 

Thanks,
Dan
 


On Thursday 08 September 2011 17:08:55 Steve Murphy wrote:
> Seems my email is too large with the attachment.  Along with the block of
> message include previously there is also this message.
> 
> [junit]   </build>
> [junit]   <build time="0 minute(s) 0 second(s)" error="exec error">
> [junit]     <target name="exec">
> [junit]       <task name="BAD">
> [junit]         <message priority="error"><![CDATA[Could not execute
> command: BAD with arguments: -P 'ID 03'  -V
> C:\Users\stevenm\AppData\Local\Temp\net.sourceforge.cruisecontrol.builders.
> PipedExecBuilderTest3984754424049647012.txt]]></message> [junit]      
> </task>
> [junit]     </target>
> [junit]   </build>
> 
> -----Original Message-----
> From: Steve Murphy
> Sent: Thursday, September 08, 2011 3:48 PM
> To: Daniel Tihelka ; [email protected]
> Subject: Re: [Cruisecontrol-user] Errors Trying to build CruiseControl
> fromsources
> 
> Resending, but this time to the mailing list as well.
> 
> The entire build output is in the attached file, also included a section of
> the output below.
> 
> Thanks,
> Steve
> 
>     [junit] <?xml version="1.0" encoding="UTF-8"?>
>     [junit] <build time="0 minute(s) 0 second(s)" error="return code is 1">
>     [junit]   <build time="0 minute(s) 0 second(s)">
>     [junit]     <target name="exec">
>     [junit]       <task name="java">
>     [junit]         <message
> priority="info"><![CDATA[java.lang.NoClassDefFoundError: Files]]></message>
>     [junit]         <message priority="info"><![CDATA[Caused by:
> java.lang.ClassNotFoundException: Files]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.net.URLClassLoader$1.run(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.security.AccessController.doPrivileged(Native Method)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.net.URLClassLoader.findClass(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.lang.ClassLoader.loadClass(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.lang.ClassLoader.loadClass(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[Could not find the
> main class: Files.  Program will exit.]]></message>
>     [junit]         <message priority="info"><![CDATA[Exception in thread
> "main"]]></message>
>     [junit]       </task>
>     [junit]     </target>
>     [junit]   </build>
>     [junit]   <build time="0 minute(s) 0 second(s)" error="return code is
> 1">
>     [junit]     <target name="exec">
>     [junit]       <task name="java">
>     [junit]         <message
> priority="info"><![CDATA[java.lang.NoClassDefFoundError: Files]]></message>
>     [junit]         <message priority="info"><![CDATA[Caused by:
> java.lang.ClassNotFoundException: Files]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.net.URLClassLoader$1.run(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.security.AccessController.doPrivileged(Native Method)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.net.URLClassLoader.findClass(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.lang.ClassLoader.loadClass(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[at
> java.lang.ClassLoader.loadClass(Unknown Source)]]></message>
>     [junit]         <message priority="info"><![CDATA[Could not find the
> main class: Files.  Program will exit.]]></message>
>     [junit]         <message priority="info"><![CDATA[Exception in thread
> "main"]]></message>
>     [junit]       </task>
>     [junit]     </target>
>     [junit]   </build>
>     [junit] </build>

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
test.patch (text/x-patch, 1.4 KB)
Index: test/net/sourceforge/cruisecontrol/builders/PipedExecBuilderTest.java
===================================================================
--- test/net/sourceforge/cruisecontrol/builders/PipedExecBuilderTest.java	(revision 4601)
+++ test/net/sourceforge/cruisecontrol/builders/PipedExecBuilderTest.java	(working copy)
@@ -780,6 +780,12 @@
         if (pipeFrom != null) {
             ((PipedExecBuilder.Script) exec).setPipeFrom(pipeFrom);
         }
+
+        // not in debug mode, leave
+        if (! debugMode) {
+            return;
+        }
+        System.out.println("Exec: " + ((PipedExecBuilder.Script) exec).getCommand() + " " + ((PipedExecBuilder.Script) exec).getArgs());
     }
 
     /**
Index: src/net/sourceforge/cruisecontrol/builders/ExecBuilder.java
===================================================================
--- src/net/sourceforge/cruisecontrol/builders/ExecBuilder.java	(revision 4601)
+++ src/net/sourceforge/cruisecontrol/builders/ExecBuilder.java	(working copy)
@@ -281,6 +281,14 @@
     } // setArgs
 
     /**
+     * Gets the arguments for the command to execute
+     * @return the arguments for the command
+     */
+    public String getArgs() {
+        return this.args;
+    } // getArgs
+
+    /**
      * Sets the error string to search for in the command output
      * @param errStr the error string to search for in the command output
      */
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEABECAAYFAk5pClkACgkQuYlVhxo/P1GP9ACfTrcvhpl8x60f3LGtpuX8t6Dr
CnQAnjFRm1YSIuMHBT/kDzVdCL14EMgP
=ZBir
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.