You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Samuel Andrew McIntyre (JIRA)" <de...@db.apache.org> on 2005/04/29 06:22:06 UTC
[jira] Created: (DERBY-249) Builds fail during splitmessages step if path contains spaces
Builds fail during splitmessages step if path contains spaces
-------------------------------------------------------------
Key: DERBY-249
URL: http://issues.apache.org/jira/browse/DERBY-249
Project: Derby
Type: Bug
Components: Build tools
Versions: 10.0.2.2, 10.1.0.0
Reporter: Samuel Andrew McIntyre
Priority: Trivial
If the path to the Derby source files contains a space, for example /opt/My Local Drive/derbysource, then the build will fail at the splitmessages step with the following error:
[java] Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[java] at java.lang.String.substring(String.java:1444)
[java] at org.apache.derbyBuild.splitmessages.main(splitmessages.java:44)
splitmessages should be improved to handle spaces in the path to the message files.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (DERBY-249) Builds fail during splitmessages step if path contains spaces
Posted by "Dyre Tjeldvoll (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-249?page=comments#action_65270 ]
Dyre Tjeldvoll commented on DERBY-249:
--------------------------------------
This happens because the ANT-task that runs the splitmessages.java program supplies the two arguments (a directory and a property file) with a <arg line="..."/> element.
The ANT manual (http://ant.apache.org/manual/), says "Ant will try to split the command line in a way similar to what a (Unix) shell would do, but may create something that is very different from what you expect under some circumstances."
And that is what happens. With spaces in the file names the shell-like splitting will cause splitmessages.java to be started with more than two arguments.
The solution is to replace the <arg line="..."/> element in java/engine/org/apache/derby/loc/build.xml
with a pair of <arg value="..."/> elements.
> Builds fail during splitmessages step if path contains spaces
> -------------------------------------------------------------
>
> Key: DERBY-249
> URL: http://issues.apache.org/jira/browse/DERBY-249
> Project: Derby
> Type: Bug
> Components: Build tools
> Versions: 10.0.2.2, 10.1.0.0
> Reporter: Samuel Andrew McIntyre
> Assignee: Dyre Tjeldvoll
> Priority: Trivial
>
> If the path to the Derby source files contains a space, for example /opt/My Local Drive/derbysource, then the build will fail at the splitmessages step with the following error:
> [java] Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> [java] at java.lang.String.substring(String.java:1444)
> [java] at org.apache.derbyBuild.splitmessages.main(splitmessages.java:44)
> splitmessages should be improved to handle spaces in the path to the message files.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (DERBY-249) Builds fail during splitmessages step if path contains spaces
Posted by "Samuel Andrew McIntyre (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-249?page=all ]
Samuel Andrew McIntyre closed DERBY-249:
----------------------------------------
Resolution: Fixed
Fix Version: 10.0.2.2
10.1.0.0
revisions 170793 (10.1) and 170782 (10.0)
> Builds fail during splitmessages step if path contains spaces
> -------------------------------------------------------------
>
> Key: DERBY-249
> URL: http://issues.apache.org/jira/browse/DERBY-249
> Project: Derby
> Type: Bug
> Components: Build tools
> Versions: 10.0.2.2, 10.1.0.0
> Reporter: Samuel Andrew McIntyre
> Assignee: Dyre Tjeldvoll
> Priority: Trivial
> Fix For: 10.0.2.2, 10.1.0.0
> Attachments: derby-249.diff, derby-249.status, derbyall_report.txt
>
> If the path to the Derby source files contains a space, for example /opt/My Local Drive/derbysource, then the build will fail at the splitmessages step with the following error:
> [java] Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> [java] at java.lang.String.substring(String.java:1444)
> [java] at org.apache.derbyBuild.splitmessages.main(splitmessages.java:44)
> splitmessages should be improved to handle spaces in the path to the message files.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (DERBY-249) Builds fail during splitmessages step if path contains spaces
Posted by "Dyre Tjeldvoll (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-249?page=all ]
Dyre Tjeldvoll reassigned DERBY-249:
------------------------------------
Assign To: Dyre Tjeldvoll
> Builds fail during splitmessages step if path contains spaces
> -------------------------------------------------------------
>
> Key: DERBY-249
> URL: http://issues.apache.org/jira/browse/DERBY-249
> Project: Derby
> Type: Bug
> Components: Build tools
> Versions: 10.0.2.2, 10.1.0.0
> Reporter: Samuel Andrew McIntyre
> Assignee: Dyre Tjeldvoll
> Priority: Trivial
>
> If the path to the Derby source files contains a space, for example /opt/My Local Drive/derbysource, then the build will fail at the splitmessages step with the following error:
> [java] Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> [java] at java.lang.String.substring(String.java:1444)
> [java] at org.apache.derbyBuild.splitmessages.main(splitmessages.java:44)
> splitmessages should be improved to handle spaces in the path to the message files.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira