History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-25267
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dmitry Jemerov
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Javac2 fails on attempt to process form files

Created: 11 Mar 08 20:57   Updated: 11 Mar 08 20:57
Component/s: Ant Integration, Compiling Project, GUI Designer
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,755


 Description  « Hide
Create a single module project.
Create a package, add a GUI form bound to class, tested GridBagLayout. Compile.
Generate ant build for the project: single file, javac2 is On. Tested with "Use JDK definitions" set both to On and Off.

Make javac2 taskdef valid the following way:

...
	<path id="javac2-libs">
		<fileset dir="${path.variable.application-home-dir}/lib">
			<include name="asm.jar"/>
			<include name="asm-commons.jar"/>
			<include name="javac2.jar"/>
			<include name="jdom.jar"/>
		</fileset>
	</path>

	<taskdef name="javac2" classname="com.intellij.ant.Javac2">
		<classpath refid="javac2-libs"/>
	</taskdef>
...

Variable path.variable.application-home-dir points to IDEA installation directory via absolute path.

In IDEA 6.0.x this script runs successfully. In IDEA 7.0 it fails. The exception on the lowest level is:

...
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
	at com.intellij.uiDesigner.compiler.Utils.<clinit>(Utils.java:47)
	at com.intellij.ant.Javac2.instrumentForms(Javac2.java:100)
	at com.intellij.ant.Javac2.compile(Javac2.java:50)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
	at org.apache.tools.ant.Main.runBuild(Main.java:698)
	at org.apache.tools.ant.Main.startAnt(Main.java:199)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.