db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/ojb-blank build.xml
Date Wed, 23 Jun 2004 20:20:46 GMT
tomdz       2004/06/23 13:20:46

  Modified:    src/ojb-blank build.xml
  Log:
  Added jdo-enhancement sample target
  
  Revision  Changes    Path
  1.5       +19 -1     db-ojb/src/ojb-blank/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/ojb-blank/build.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.xml	22 Jun 2004 19:10:49 -0000	1.4
  +++ build.xml	23 Jun 2004 20:20:46 -0000	1.5
  @@ -149,7 +149,7 @@
       </target>
   
       <!-- ================================================================== -->
  -    <!-- Creates a jar for the proje                                        -->
  +    <!-- Creates a jar for the project                                      -->
       <!-- ================================================================== -->
       <target name="jar" depends="build">
           <mkdir dir="${target.dir}"/>
  @@ -163,5 +163,23 @@
           </jar>
       </target>
   
  +    <!-- ================================================================== -->
  +    <!-- jdo enhancer - sample target for enhancing the Product class from  -->
  +    <!--                tutorial 5                                          -->
  +    <!-- ================================================================== -->
  +    <target name="enhance-jdori" depends="build">
  +        <!-- One problem with the standard JDORI enhance is that it only works on
  +             single files which means that it is necessary to invoke the enhancer
  +             for any JDO-persistent class
  +             Therefore we cannot provide a target that enhances all relevant
  +             classes, but only a sample target that shows how to do it -->
  +
  +        <java fork="yes"
  +              failonerror="yes"
  +              classname="com.sun.jdori.enhancer.Main"
  +              classpathref="compile-classpath">
  +            <arg line="-v -f -d ${build.classes.dir} ${source.java.dir}/org/apache/ojb/tutorial5/Product.jdo
${build.classes.dir}/org/apache/ojb/tutorial5/Product.class"/>
  +        </java>
  +    </target>
   </project>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message