File tree Expand file tree Collapse file tree 6 files changed +18
-41
lines changed Expand file tree Collapse file tree 6 files changed +18
-41
lines changed Original file line number Diff line number Diff line change 1818  <!--  Include the 'hibernatetool' task definition from the file '../common/included.xml' --> 
1919  <include  file =" ../common/included.xml"  />
2020
21-   <target  name =" clean" > 
22-     <!--  Delete the folder 'generated-sources' if it exists --> 
23-     <delete  dir =" generated"  />
24-   </target >
25- 
26-   <target  name =" reveng"   depends =" clean" > 
21+   <target  name =" reveng"   depends =" common.clean" > 
2722    <!--  Generation of the artefacts in folder 'generated-sources' --> 
2823    <hibernatetool  destdir =" generated"  >
2924      <!--  JDBC Configuration with properties in file '../common/hibernate.properties' --> 
Original file line number Diff line number Diff line change 4444            classname =" org.hibernate.tool.ant.HibernateToolTask" 
4545            classpathref =" classpath"   />
4646
47+     <target  name =" clean"  >
48+         <!--  Delete the folder 'generated-sources' if it exists --> 
49+         <delete  dir =" generated"  />
50+         <delete >
51+             <fileset  dir =" ."   includes =" **/*.class"  />
52+         </delete >
53+     </target >
54+ 
55+     <target  name =" compile"   depends =" clean"  >
56+         <!--  Compile the custom exporter 'HelloExporter' --> 
57+         <javac  srcdir =" ."   destdir =" ."   classpathref =" classpath"  />
58+     </target >
59+ 
4760</project >
Original file line number Diff line number Diff line change 1818  <!--  Include the 'hibernatetool' task definition from the file '../common/included.xml' --> 
1919  <include  file =" ../common/included.xml"  />
2020
21-   <target  name =" clean" > 
22-     <!--  Delete the folder 'generated-sources' if it exists --> 
23-     <delete  dir =" generated"  />
24-   </target >
25- 
26-   <target  name =" reveng"   depends =" clean" > 
21+   <target  name =" reveng"   depends =" common.clean" > 
2722    <hibernatetool  destdir =" generated"  >
2823      <!--  Native configuration reading properties from '../common/hibernate.properties' --> 
2924      <configuration  propertyfile =" ../common/hibernate.properties"  />
Original file line number Diff line number Diff line change 1818  <!--  Include the 'hibernatetool' task definition from the file '../common/included.xml' --> 
1919  <include  file =" ../common/included.xml"  />
2020
21-   <target  name =" clean" > 
22-     <!--  Delete the folder 'generated-sources' if it exists --> 
23-     <delete  dir =" generated"  />
24-     <delete  file =" Foo.class"  />
25-   </target >
26- 
27-   <target  name =" compile"   depends =" clean" > 
28-     <!--  Compile the custom exporter 'HelloExporter' --> 
29-     <javac  srcdir =" ."   destdir =" ."   classpathref =" classpath"  />
30-   </target >
31- 
32-   <target  name =" reveng"   depends =" compile" > 
21+   <target  name =" reveng"   depends =" common.compile" > 
3322    <hibernatetool  destdir =" generated"  >
3423      <classpath  location =" ."  />
3524      <!--  Native configuration read from 'hibernate.cfg.xml' --> 
Original file line number Diff line number Diff line change 1818  <!--  Include the 'hibernatetool' task definition from the file '../common/included.xml' --> 
1919  <include  file =" ../common/included.xml"  />
2020
21-   <target  name =" clean" > 
22-     <!--  Delete the compiled class for 'HelloExporter.java' if it exists --> 
23-     <delete  file =" HelloExporter.class"  />
24-   </target >
25- 
26-   <target  name =" compile"   depends =" clean" > 
27-     <!--  Compile the custom exporter 'HelloExporter.java' --> 
28-     <javac  classpathref =" classpath"   srcdir =" ."   />
29-   </target >
30- 
31-   <target  name =" reveng"   depends =" compile" > 
21+   <target  name =" reveng"   depends =" common.compile" > 
3222    <!--  Property to use in the propertySet case --> 
3323    <property  name =" thingOne"   value =" Bar"  />
3424    <echo  message =" First try without any property set"  />
Original file line number Diff line number Diff line change 1818  <!--  Include the 'hibernatetool' task definition from the file '../common/included.xml' --> 
1919  <include  file =" ../common/included.xml"  />
2020
21-   <target  name =" clean" > 
22-     <!--  Delete the folder 'generated-sources' if it exists --> 
23-     <delete  dir =" generated"  />
24-   </target >
25- 
26-   <target  name =" reveng"   depends =" clean" > 
21+   <target  name =" reveng"   depends =" common.clean" > 
2722    <!--  Hibernate Tools will look for templates to use in the 'templates' folder --> 
2823    <hibernatetool  
2924          destdir =" generated" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments