NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

schemagen in ear

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
ymajoros



Joined: 25 May 2009
Posts: 21

PostPosted: Wed Oct 13, 2010 1:43 pm    Post subject: schemagen in ear Reply with quote

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

PostPosted: Mon Oct 18, 2010 8:32 am    Post subject: Reply with quote

help!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo