https://issues.apache.org/bugzilla/show_bug.cgi?id=54008
Priority: P2
Bug ID: 54008
Assignee: [email protected]
Summary: [PATCH] Ant build fails if code is located in a
directory with blanks
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 3.9-dev
Component: POI Overall
Product: POI
When using a directory with blanks in the name, building Apache POI fails:
compile-ooxml-lite:
[java] Collecting unit tests from /opt/jenkins/workspace/Apache
[java] Exception in thread "main"
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[java] at java.lang.String.substring(String.java:1937)
[java] at java.lang.String.substring(String.java:1904)
[java] at
org.apache.poi.util.OOXMLLite.collectTests(OOXMLLite.java:155)
[java] at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:86)
[java] at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:78)
[java] Java Result: 1
The step for "compile-ooxml-lite" is currently written in a way that does not
support blanks, the following patch fixes this:
Index: build.xml
===================================================================
--- build.xml (Revision 1397790)
+++ build.xml (Arbeitskopie)
@@ -735,7 +735,12 @@
<classpath refid="test.ooxml.classpath"/>
<syspropertyset refid="junit.properties"/>
<jvmarg value="${poi.test.locale}"/>
- <arg line="-ooxml ${ooxml.xsds.jar} -test ${ooxml.output.test.dir}
-dest ${ooxml.lite.output.dir}"/>
+ <arg value="-ooxml"/>
+ <arg value="${ooxml.xsds.jar}"/>
+ <arg value="-test"/>
+ <arg value="${ooxml.output.test.dir}"/>
+ <arg value="-dest"/>
+ <arg value="${ooxml.lite.output.dir}"/>
</java>
</target>
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]