Task #5544 (closed)
Opened 8 years ago
Closed 8 years ago
Bug: test-compile fails on long path names
| Reported by: | jamoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-Beta4.3 |
| Component: | Deployment | Version: | n.a. |
| Keywords: | n.a. | Cc: | jburel |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | n.a. |
Description
Due to the very long command line, javac.exe can fail on Windows if the directory name is too long. We can look for a ant-based workaround, but otherwise it will be required to use shorter directory names (possibly via mklink)
... BUILD FAILED C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src\build.xml:251: The following error occurred while executing this line: C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src\build.xml:245: The following error occurred while executing this line: C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src\components\antlib\resources\global.xml:110: The following error occurred while executing this line: C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src\components\antlib\resources\lifecycle.xml:202: Error running javac.exe compiler Total time: 1 minute 25 seconds C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src>if errorlevel 1 goto ERROR C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src>echo Failed 1 Failed 1 C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src>exit /b 1 Loading http://hudson.openmicroscopy.org.uk/job/OMERO-trunk/lastSuccessfulBuild/artifact/src/target/trunk.log ... Removing C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src\trunk.config ... Downloading http://hudson.openmicroscopy.org.uk/job/OMERO-trunk-components/./component=start,label=x86-windows/733//artifact/src/trunk.config ... Launching docs\hudson\OMERO-java.bat ============================================================ ============================================================ Build failed with rcode=1 Recording test results Archiving artifacts Recording fingerprints ... Notifying upstream projects of job completion Finished: FAILURE
Change History (2)
comment:1 Changed 8 years ago by jmoore
comment:2 Changed 8 years ago by jmoore <josh@…>
- Remaining Time set to 0
- Resolution set to fixed
- Status changed from new to closed
(In [e23da45a427ff6ae79f3b67b54326193e7361581/ome.git] on branch develop) Using @${temp.file} in javac ant task (Fix #5544)
Here's the debug output:
Caused by: java.io.IOException: Cannot run program "javac.exe" (in directory "C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-wind ows\src\components\tools\OmeroImporter"): CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:511) ... 65 more Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 71 more Total time: 13 minutes 45 seconds C:\hudson\workspace\OMERO-trunk-components\component\java\label\x86-windows\src>