cannot create jar files from ant

Hi,

any ideas why the following Ant taks generates an exception? I didn't
find another way to specify the .jar file. But anyway -- that is the way
how it is explained in the Ant docs.

/Users/dittert/Documents/programming/csi660T-assignment02/csi660T-assignment02/build.xml:28:
The ]]> task doesn't support the "destfile" attribute.
at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:273)
at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:654)
at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:143)
at org.apache.tools.ant.Task.maybeConfigure(Task.java:178)
at org.apache.tools.ant.Task.perform(Task.java:216)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at com.intellij.ant.AntMain.a(AntMain.java:184)
at com.intellij.ant.AntMain.a(AntMain.java:277)
at com.intellij.ant.AntMain.main(AntMain.java:139)

<jar basedir="$"
destfile="$/csi660T-assignment02.jar">
I have Ant set to run with a special JDK, because otherwise I'll get "Property "jdk.home" that should point to the JDK IDEA runs under is not set. Please make sure you execute IDEA with this property properly set or set the JDK in ANT script properties dialog." Is this something like #7948, just for the initial JDK? Where would I properly set this property? You might want to add documentations for all error messages explaining what usually causes them and how to solve these problems. Something seems to be completely messed up with this project but I don't know where to start to fix it. System: MacOS X, IDEA #551 Sorry to say that, but IDEA support for the other platforms is a lot better! Or to put it in other words: IDEA is actually usable on other platforms. ]]>

Is it reasonable to submit bug reports for things that I believe are
going wrong? Or is it better to wait for the JDK 1.4 release because
nobody is going to fix things for IDEA 2.6 anyway?

Best regards,

Dirk Dittert

1 comment

Try using 'jarfile' instead of 'destfile'.

"Dirk Dittert" <dittert@despammed.com> wrote in message
news:3E5D5FF2.2050001@despammed.com...

Hi,

>

any ideas why the following Ant taks generates an exception? I didn't
find another way to specify the .jar file. But anyway -- that is the way
how it is explained in the Ant docs.

>
>
/Users/dittert/Documents/programming/csi660T-assignment02/csi660T-assignment
02/build.xml:28:

The <jar> task doesn't support the "destfile" attribute.
at

>
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.ja
va:273)

at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:654)
at

>
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.
java:143)

at org.apache.tools.ant.Task.maybeConfigure(Task.java:178)
at org.apache.tools.ant.Task.perform(Task.java:216)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at com.intellij.ant.AntMain.a(AntMain.java:184)
at com.intellij.ant.AntMain.a(AntMain.java:277)
at com.intellij.ant.AntMain.main(AntMain.java:139)

>

<jar basedir="$"
destfile="$/csi660T-assignment02.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="Main"/>
</manifest>
</jar>

>

I have Ant set to run with a special JDK, because otherwise I'll get
"Property "jdk.home" that should point to the JDK IDEA runs under is not
set. Please make sure you execute IDEA with this property properly set
or set the JDK in ANT script properties dialog."

>

Is this something like #7948, just for the initial JDK? Where would I
properly set this property? You might want to add documentations for all
error messages explaining what usually causes them and how to solve
these problems. Something seems to be completely messed up with this
project but I don't know where to start to fix it.

>

System: MacOS X, IDEA #551

>

<pissed off>
Sorry to say that, but IDEA support for the other platforms is a lot
better! Or to put it in other words: IDEA is actually usable on other
platforms.
</pissed off>

>

Is it reasonable to submit bug reports for things that I believe are
going wrong? Or is it better to wait for the JDK 1.4 release because
nobody is going to fix things for IDEA 2.6 anyway?

>

Best regards,

>

Dirk Dittert

>


0

Please sign in to leave a comment.