I can't answer your question but I resend it with [HiveMind] in the Subject. A thing you should always do. On Fri, 17 Oct 2003 07:42:25 -0700, Michael Mehrle <[EMAIL PROTECTED]> wrote:

----- Original Message ----- From: "Michael Mehrle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 16, 2003 2:52 PM
Subject: Problems with manifestclasspath task



Let's get right to it:


I'm defining my taskdef as such:

<taskdef name="manifestclasspath"
classname="org.apache.commons.hivemind.ant.ManifestClassPath">
<classpath>
<pathelement location="${build.lib}/commons-hivemind-1.0-alpha-2.jar"/>
</classpath>
</taskdef>

... and here's my JAR task:

<!-- =================================================================== -


->
<!-- Packages the distribution to a JAR -->
<!-- =================================================================== -



-> <target name="jar" depends="dist"> <manifestclasspath directory="${build.home}" property="mani.class.path"> <classpath refid="manifest.class.path"/> </manifestclasspath> <jar jarfile="${run.lib}/${app.name}.jar" basedir="${build.classes}"> <include name="**"/> <manifest> <attribute name="Built-By" value="${user.name}"/> <attribute name="Main-Class" value="test.tdg.AllTests"/> <attribute name="Class-Path" value="${mani.class.path}"/> </manifest> </jar> </target>

... and this is what I'm getting:


BUILD FAILED
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1444)
at java.lang.String.substring(String.java:1411)
at
org.apache.commons.hivemind.ant.ManifestClassPath.execute(ManifestClassPath.



java :138) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 16 seconds
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1444)
at java.lang.String.substring(String.java:1411)
at
org.apache.commons.hivemind.ant.ManifestClassPath.execute(ManifestClassPath.



java :138) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) String index out of range: -1


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




-- Christian Essl http://jucas.sourceforge.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to