NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
ymajoros
Joined: 25 May 2009 Posts: 21
|
Posted: Wed Oct 13, 2010 1:43 pm Post subject: schemagen in ear |
|
|
Hi,
I have following project structure (ant-based):
EAR
*EJB 1
*EJB 2
*WAR
It's a Java EE 5 Project. I'm trying to have a custom ant task to generate an xsd schema in the war module, from classes in the various ejb modules.
I can create this task in an ejb module, it works fine.
But it seems I can't access the classes from the other modules, which I need to have in the schemagen ant task.
Any idea or solution?
Here is the ant task (again, working in ejb module, not in war).
<target name="-post-compile">
<taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask" classpath="${javac.classpath}:${endorsed.classpath}:${j2ee.platform.classpath}">
<classpath>
<fileset dir="${libraries.dir}/jaxb" includes="*.jar" />
</classpath>
</taskdef>
<mkdir dir="${build.dir}/schemas" />
<schemagen srcdir="${src.dir}" destdir="${build.dir}/schemas" includeantruntime="false">
<!-- <schema namespace="http://epc.uclouvain.be/WebApi" file="epc-api.xsd" />-->
<classpath path="${javac.classpath}:${endorsed.classpath}:${j2ee.platform.classpath}">
<!-- <fileset dir="${build.dir}" includes="*.jar" />-->
</classpath>
<include name="be/ucl/epc/desccours/domain/ResultatRechercheActivite.java" />
<include name="be/ucl/epc/desccours/domain/RechercheActivite.java" />
<include name="be/ucl/epc/desccours/domain/FicheActivite.java" />
</schemagen>
</target> |
|
| Back to top |
|
 |
ymajoros
Joined: 25 May 2009 Posts: 21
|
Posted: Mon Oct 18, 2010 8:32 am Post subject: |
|
|
| help! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|