antlets/jalopy/src tasks.properties,NONE,1.1 xbuild.xml,NONE,1.1

[email protected] Mon, 01 Mar 2004 01:03:08 -0800
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/antlets/jalopy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21389/jalopy/src

Added Files:
	tasks.properties xbuild.xml 
Log Message:
jalopy antlet added

--- NEW FILE: tasks.properties ---
#jalopy tasks
jalopy=de.hunsicker.jalopy.plugin.ant.AntPlugin


--- NEW FILE: xbuild.xml ---
<?xml version="1.0"?>
<project default="jalopy" name="jalopy.antlet">

    <description>
      Formats the java source code.
    </description>
<!--
	    <available property="jalopy.lib" file="lib\${project.jars}"/>
    <fail message="download ${project.jars} to the lib directory before running this build" unless="jalopy.lib"/>
	
	-->
   <!-- =================================================================== -->
   <!-- ================ Properties for this antlet   ===================== -->
   <!-- =================================================================== -->
   <dirname property="jalopy.antlet.dir" file="${ant.file.jalopy.antlet}"/>
   <property name="jalopy.antlet.build.dir" value="${project.build.dir}/jalopy"/>  
   <!-- The jalopy.xml configuration file -->
   <property name="jalopy.antlet.properties.file" value="${jalopy.antlet.dir}/conf/jalopy.xml"/>


   <!-- =================================================================== -->
   <!-- ================ Main target;Formats the sourcecode =============== -->
   <!-- =================================================================== -->
    <target name="jalopy" description="Formats the sourcecode"
    	                  depends="-jalopy.init">


	  <path id="jalopy.antlet.format.classpath">
		    <pathelement location="${project.build.dir}/classes/" />
	   	    <path refid="jalopy.classpath"/>
	  </path>

	     <jalopy style="${jalopy.antlet.properties.file}" 
	     	     classpathref="jalopy.antlet.format.classpath">
		  <fileset dir="${project.src.dir}">
			<include name="**/*.java" />
		  </fileset>
	     </jalopy>
    </target>
    
   <!-- =================================================================== -->
   <!-- ================ Checks this antlets settings ===================== -->
   <!-- =================================================================== -->
  <target name="jalopy-check" description="Checks this antlets settings"
                              depends="-jalopy.init">
    <echo>
    	antlets.dir                             ${antlets.dir}
    	project.build.dir                       ${project.build.dir}
    	project.src.dir                         ${project.src.dir}
    	jalopy.antlet.dir                       ${jalopy.antlet.dir}
    	jalopy.antlet.build.dir                 ${jalopy.antlet.build.dir}

    	jalopy.repository                       ${jalopy.repository}
    	jalopy.jar                              ${jalopy.jar}
    </echo>
    </target>

   <target name="-jalopy.init" description="download necessary jars and set classpath">
      <!-- Download the necessary jars -->     
	  <mkdir dir="${jalopy.antlet.dir}/lib"/>

      <property name="jalopy.repository" value="http://www.ibiblio.org/maven/jalopy/jars/"/>
      <property name="jalopy.jar" value="jalopy-1.0b10.jar"/>
      <property name="jalopy-ant.jar" value="jalopy-ant-0.6.1.jar"/>
      <property name="jdom.repository" value="http://www.ibiblio.org/maven/jdom/jars/"/>
      <property name="jdom.jar" value="jdom-1.0b8.jar  "/>
      <property name="log4j.repository" value="http://www.ibiblio.org/maven/log4j/jars/"/>
      <property name="log4j.jar" value="log4j-1.2.6.jar  "/>
      <property name="oro.repository" value="http://www.ibiblio.org/maven/oro/jars/"/>
      <property name="oro.jar" value="oro-2.0.6.jar  "/>


      <!--TODO find out if Aelfred is still needed since 1.4 has it's own XML parser 
      <property name="aelfred.repository" value="http://www.ibiblio.org/maven/aelfred/jars/"/>
      <property name="aelfred.jar" value="aelfred-1.2.jar  "/>
	  <echo message="getting ${aelfred.jar} from ${aelfred.repository}"/>
      <get
         src="${aelfred.repository}${aelfred.jar}"
         dest="${jalopy.antlet.dir}/lib/${aelfred.jar}"
         verbose="true" usetimestamp="true"/>
       --> 

	<echo message="getting ${log4j.jar} from ${log4j.repository}"/>
    <get
         src="${log4j.repository}${log4j.jar}"
         dest="${jalopy.antlet.dir}/lib/${log4j.jar}"
         verbose="true" usetimestamp="true"/>


	<echo message="getting ${oro.jar} from ${oro.repository}"/>
    <get
         src="${oro.repository}${oro.jar}"
         dest="${jalopy.antlet.dir}/lib/${oro.jar}"
         verbose="true" usetimestamp="true"/>

	<echo message="getting ${jdom.jar} from ${jdom.repository}"/>
    <get
         src="${jdom.repository}${jdom.jar}"
         dest="${jalopy.antlet.dir}/lib/${jdom.jar}"
         verbose="true" usetimestamp="true"/>
	<echo message="getting ${jalopy.jar} from ${jalopy.repository}"/>
    <get
         src="${jalopy.repository}${jalopy.jar}"
         dest="${jalopy.antlet.dir}/lib/${jalopy.jar}"
         verbose="true" usetimestamp="true"/>
	<echo message="getting ${jalopy-ant.jar} from ${jalopy.repository}"/>
    <get
         src="${jalopy.repository}${jalopy-ant.jar}"
         dest="${jalopy.antlet.dir}/lib/${jalopy-ant.jar}"
         verbose="true" usetimestamp="true"/>
         
      <!-- Set Classpath for necessary jars -->
      <path id="jalopy.classpath">
        <fileset dir="${jalopy.antlet.dir}/lib">
          <include name="*.jar"/>
        </fileset>
      </path>
      <taskdef file="${jalopy.antlet.dir}/tasks.properties" classpathref="jalopy.classpath"/>
      

<!--
    xxxxxxxxxxxxxxxxxxxxxxxx
	x included in java 1.4.x
    xxxxxxxxxxxxxxxxxxxxxxxx
    
      <property name="jaxp.repository" value="http://www.ibiblio.org/maven/jaxp/jars/"/>
      <property name="jaxp.jar" value="jaxp-1.2.jar  "/>

	<echo message="getting ${jaxp.jar} from ${jaxp.repository}"/>
    <get
         src="${jaxp.repository}${jaxp.jar}"
         dest="${jalopy.antlet.dir}/lib/${jaxp.jar}"
         verbose="true" usetimestamp="true"/>
         
      <property name="sax.repository" value="http://www.ibiblio.org/maven/sax/jars/"/>
      <property name="sax.jar" value="sax-2.0.1.jar  "/>
	<echo message="getting ${sax.jar} from ${sax.repository}"/>
    <get
         src="${sax.repository}${sax.jar}"
         dest="${jalopy.antlet.dir}/lib/${sax.jar}"
         verbose="true" usetimestamp="true"/>
-->
 </target>

</project>



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click