Hi aslak, thanks for replying, I have three questions right now to deploy my app in jboss or oc4j :
 
1� : I created by hand an application.xml and copy to the build dir before jaring the ear, but in sample of xdoclet it's generated through ReplaceCopy. And there's the EAR and WAR task in ant, what's better?
 
2� : i sent a question about problem in reading the ejb-jar.xml, in oc4j and jboss, utf-8 error, if u can, take a look in my last post.
obs: I can solve this...
 
3� I created three diffrent branches in my path for each module :
 
client
server
both
 
so I can put , for example, the interface and home in both, bussiness delegates in client, and so on. SO when I want to compile i do :
 

   <target name="compile-ejbs" depends="ejbdoclet">
      <!-- Compile EJBs -->
      <javac srcdir="${java.dir};${generated.java.dir}"
             destdir="${ejb.classes.dir}"
             includes="**/server/**/*.java,**/both/**/*.java" >
         <classpath refid="project.class.path" />
      </javac>
      <echo message="compiled  ejb classes"/>     
   </target>
 
  <!-- Compila -->
   <target name="compile" depends="compile-ejbs">
 
      <!-- Compila classes web -->
      <javac srcdir="${java.dir};${generated.java.dir}"
             destdir="${build.dir}/web/WEB-INF/classes"
             includes="**/client/**/*.java;**/both/**/*.java">            
          <classpath refid="project.class.path" />
 
      </javac>
      <echo message="compilou classes para web"/>
 
   </target>

is it a nice way to separate and to distribute the same classes to either server and client ????
 
 
----- Original Message -----
Sent: Sunday, April 28, 2002 8:20 PM
Subject: RE: [Xdoclet-user] Better appoache to create the applicatin.xml ??

I don't understand your question. What's your problem?
 
Aslak
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Emerson Cargnin - MSA
Sent: 29. april 2002 01:10
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] Better appoache to create the applicatin.xml ??

In the samples xdoclet uses ReplaceCopy to make the appxml file like following xml
 
<!-- ================================================= -->
   <!-- Example usage of the AntPropertyTask Creates an   -->
   <!-- application.xml file from a template and replaces -->
   <!-- all occurrences of                                -->
   <!-- <XDtAnt:property name="some.ant.property"/>       -->
   <!-- with the specified ant property.                  -->
   <!-- ================================================= -->
   <target name="appxml" depends="init">
      <property name="app.display.name" value="Samples"/>
      <property name="app.description" value="Sample application for XDoclet"/>
      <property name="app.ejbjar.name" value="samples-ejb.jar"/>
      <property name="app.war.name" value="samples-web.war"/>
      <property name="app.contextroot" value="/samples"/>
 
      <taskdef
         name="replacecopy"
         classname="xdoclet.ant.ReplaceCopy"
         classpath="${xdoclet.jar.path};${log4j.jar.path};${ant.jar.path}"
      />
      <replacecopy
         file="config/application/application.xml"
         todir="${build.dir}/j2ee/META-INF"
      />
   </target>
 
 
or using ear and war tasks of ANT????

Reply via email to