Ant Java




    
    
    
    
    
    
    
 
 
    
    
    
    
         
    
    
    
         
         
         
    
  
    
         
         
         
    
    
  
    
    
    
          description="Removes all temporary files and directories." >
    
    
  
  
    
    
    
            description="Prepares the build and distribution targets." >
        
           
        

        
    
    
                    property="junit.task.present"
            classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
        />
                    property="junit.jar.present"
            file="${junit.jar}"
        />
  
  
  
    
    
    
            depends="compile-core, compile-tests, compile-tutorial" 
          description="Compiles the library core, test, and tutorial." />
          
    
            description="Compiles the core sources." >
          srcdir       ="${src.core.dir}" 
      destdir      ="${build.core.dir}"
          encoding     ="${build.encoding}"
          executable   ="${build.compile.executable}"
          fork         ="${build.compile.fork}"
      debug        ="${build.compile.debug}"
      depend       ="${build.compile.depend}"
      deprecation  ="${build.compile.deprecation}"
      nowarn       ="${build.compile.nowarn}" 
      optimize     ="${build.compile.optimize}"
            source       ="${build.compile.source}"
      target       ="${build.compile.target}"
      verbose      ="${build.compile.verbose}"
      bootclasspath="${build.boot.classpath}" />
  
  
    
            description="Compiles the unit tests." >
        
          srcdir       ="${src.test.dir}" 
      destdir      ="${build.test.dir}"
          encoding     ="${build.encoding}"
          executable   ="${build.compile.executable}"
          fork         ="${build.compile.fork}"
      debug        ="${build.compile.debug}"
      depend       ="${build.compile.depend}"
      deprecation  ="${build.compile.deprecation}"
      nowarn       ="${build.compile.nowarn}" 
      optimize     ="${build.compile.optimize}"
            source       ="${build.compile.source}"
      target       ="${build.compile.target}"
      verbose      ="${build.compile.verbose}"
      bootclasspath="${build.boot.classpath}" 
        classpathref ="classpath.tests" />
    
  
    
            description="Compiles the tutorial." >
          srcdir       ="${src.tutorial.dir}" 
      destdir      ="${build.tutorial.dir}"
          encoding     ="${build.encoding}"
          executable   ="${build.compile.executable}"
          fork         ="${build.compile.fork}"
      debug        ="${build.compile.debug}"
      depend       ="${build.compile.depend}"
      deprecation  ="${build.compile.deprecation}"
      nowarn       ="${build.compile.nowarn}" 
      optimize     ="${build.compile.optimize}"
            source       ="${build.compile.source}"
      target       ="${build.compile.target}"
      verbose      ="${build.compile.verbose}"
      bootclasspath="${build.boot.classpath}" 
        classpathref ="classpath.tutorial" />
  
  
    
    
    
                description="Creates the API documentation using JavaDoc." >
    
                  sourcepath="${src.core.dir}"
            packagenames="${javadoc.packages}"
          destdir="${build.javadocs.dir}"
          encoding="${build.encoding}"
            access="protected" 
            author="true" 
            version="true" 
            use="true" 
            link="${javadoc.link}"
            windowtitle="${Name} ${spec.version} API" 
            doctitle="${Name} ${spec.version} API"
            bottom="${copyright.message}" >
         
    
    
    
    
    
    
            description="Compiles and runs the unit tests." >
        
        
            
            
            
                
            
        
  
    
    
    
    
    
            description="Creates the library jar." >
          destfile="${build.core.jar}" >
      
            
                                           value="${user.name}"/>
                                           value="${spec.title}" />
                                           value="${spec.version}" />
                                           value="${spec.vendor}" />
                                        value="${impl.title}" />
                                        value="${impl.version} ${DATE}" />
                                           value="${impl.vendor}" />
           

    
  
  
  
    
    
    
            description="Creates the distribution directory tree." >
  
    
    
    
        
        
                                 includes="forms-*.jar, binding-*.jar, jlme*.jar"      />
        
        
    
    
                     includes="examples/**/*, test/**/*, tutorial/**/*" />
    
    
    
    
                   includes="*.txt, *.html, *.xml, *.properties" 
             excludes="todo.txt" />
    
    
    
    
  
    
    
    
    
                description="Creates the distribution zip and Maven bundle." >
       
  
                description="Creates the distribution directory tree." >
    
        
        
        
        
                                 excludes="**/*.psd, **/*.sxw"     />
        
        
        
        
        
                                 includes="forms-*.jar, binding-*.jar"      />
        
        
        
        
                                 excludes="unused,
                               unused/**/*"      />
        
        
        
        
                                 includes="*.txt, *.html, *.xml, *.properties" 
                     excludes="todo.txt" />
        
        
        
      
    
    
                description="Packages the distribution as a zip file." >
            
                    destfile="${dist.zip}" 
            basedir="${dist.root.dir}"
            includes="${dist.subdir}/**/*" />
    
    
    
                description="Creates a Maven bundle for the Ibiblio upload." >
            
        
        
        
                    token="@impl.version"
            value="${impl.version}" />   
        
        
                    destfile="${dist.maven.src.jar}"
            basedir="${dist.src.dir}" />   
                    destfile="${dist.maven.bundle}" 
            basedir="${build.maven.dir}" />