krysalis-menu/component .cvsignore,NONE,1.1 module_component.xml,NONE,1.1

Glen Stampoultzis <[email protected]> Thu, 25 Nov 2004 10:57:54 +0000
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-menu/component
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27573/component

Added Files:
	.cvsignore module_component.xml 
Log Message:
Start of ant build system

--- NEW FILE: .cvsignore ---
component.jar

--- NEW FILE: module_component.xml ---
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="module_component" default="compile.module.component">
  <dirname property="module.component.basedir" file="${ant.file.module_component}"/>
  
  <property name="module.jdk.home.component" value="${project.jdk.home}"/>
  <property name="module.jdk.classpath.component" value="${project.jdk.classpath}"/>
  
  <property name="compiler.args.component" value="${compiler.args}"/>
  
  <property name="component.output.dir" value="${module.component.basedir}/classes"/>
  <property name="component.testoutput.dir" value="${module.component.basedir}/classes"/>
  
  <path id="component.module.bootclasspath">
    <!-- Paths to be included in compilation bootclasspath -->
  </path>
  
  <path id="component.module.classpath">
    <path refid="${module.jdk.classpath.component}"/>
    <path refid="library.tapestry.classpath"/>
  </path>
  
  
  <patternset id="excluded.from.module.component"/>
  
  <patternset id="excluded.from.compilation.component">
    <patternset refid="excluded.from.module.component"/>
    <patternset refid="compiler.excluded"/>
  </patternset>
  
  <path id="component.module.sourcepath">
    <dirset dir="${module.component.basedir}">
      <include name="src/java"/>
    </dirset>
  </path>
  
  
  <target name="compile.module.component" depends="compile.module.component.production,compile.module.component.tests" description="compile module component"/>
  
  <target name="compile.module.component.production" description="compile module component production classes">
    <mkdir dir="${component.output.dir}"/>
    <javac destdir="${component.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memoryMaximumSize="${compiler.max.memory}" fork="true" executable="${module.jdk.home.component}/bin/javac">
      <compilerarg line="${compiler.args.component}"/>
      <bootclasspath refid="component.module.bootclasspath"/>
      <classpath refid="component.module.classpath"/>
      <src refid="component.module.sourcepath"/>
      <patternset refid="excluded.from.compilation.component"/>
    </javac>
    <copy todir="${component.output.dir}">
      <fileset dir="${module.component.basedir}/src/java">
        <patternset refid="compiler.resources"/>
        <type type="file"/>
        <patternset refid="excluded.from.compilation.component"/>
      </fileset>
    </copy>
  </target>
  
  <target name="compile.module.component.tests" depends="compile.module.component.production" description="compile module component test classes" unless="skip.tests"/>
  
  <target name="clean.module.component" description="cleanup module">
    <delete dir="${component.output.dir}"/>
    <delete dir="${component.testoutput.dir}"/>
  </target>
</project>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/