avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-apps/enterprise/corbaloc build.xml build.properties .cvsignore
Date Sat, 07 Sep 2002 06:56:22 GMT
mcconnell    2002/09/06 23:56:22

  Added:       enterprise/corbaloc build.xml build.properties .cvsignore
  Log:
  Corbaloc build file and related resources.
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-apps/enterprise/corbaloc/build.xml
  
  Index: build.xml
  ===================================================================
  <?xml version="1.0"?>
  <project name="corbaloc" default="jar" basedir=".">
  
    <property file="build.properties"/>
  
    <!-- common target wrappers -->
  
    <property name="enterprise.path" value=".."/>
    <property name="apps.path" value="../.."/>
    <property name="orb.path" value="${enterprise.path}/orb"/>
    <property name="common.path" value="${apps.path}/common"/>
  
    <target name="checkstyle">
      <ant antfile="${common.path}/util/checkstyle.xml">
         <property name="checkstyle.failOnViolation" value="false"/>
         <property name="build.dir" value="${build.dir}"/>
         <property name="java.dir" value="${java.dir}"/>
      </ant>
    </target>
  
    <!-- local build environment -->
  
    <target name="help" >
      <echo>
  
        Description
        -----------
  
        ${project.title}
  
        Main Targets:
        -------------
  
        all              - cleans environment, builds bistribution and examples
        help             - this message
  
        Support Targets:
        ----------------
  
        clean            - destroy the build directory
        build            - invokes the general build target
        dist             - executes build, javadoc and support file creation
        
      </echo>
    </target>
  
    <property name="VERSION" value="${MAJOR}.${MINOR}"/>
  
    <property name="project.jar" value="corbaloc-${VERSION}.jar"/>
  
    <property name="src.dir" value="src" />
    <property name="java.dir" value="${src.dir}/java" />
    <property name="etc.dir" value="${src.dir}/etc" />
    <property name="idl.dir" value="${src.dir}/idl" />
    <property name="build.dir"  value="build" />
  
    <property name="overview.html"  value="${etc.dir}/overview.html" />
    <property name="javadoc.root.path"  value="${build.dir}/api" />
    <property name="avalon.href"  value="http://jakarta.apache.org/avalon/api/" />
    <property name="jdk.href"  value="http://java.sun.com/j2se/1.4/docs/api/" />
  
    <property name="idl.class"  value="org.openorb.compiler.IdlCompiler" />
  
  
    <path id="project.classpath">
        <fileset dir="${common.path}/lib">
          <include name="logkit*.jar" />
          <include name="avalon-framework*.jar" />
        </fileset>
        <fileset dir="${orb.path}/lib">
          <include name="openorb*.jar" />
        </fileset>
    </path>
  
    <!-- MAIN TARGETS -->
  
    <target name="all" depends="clean,dist"/>
    <target name="dist" depends="jar,javadoc"/>
  
    <target name="clean">
       <delete dir="${build.dir}"/>
    </target>
  
    <!-- PREPARE -->
  
    <target name="prepare"  >
      <mkdir dir="${build.dir}/src" />
      <mkdir dir="${build.dir}/lib" />
    </target>
  
    <target name="jar.context" depends="prepare">
      <uptodate property="jar.uptodate" targetfile="${build.dir}/${project.jar}">
        <srcfiles dir="${src.dir}/java">
           <include name="org/apache/orb/**/*.*"/>
        </srcfiles>
        <srcfiles dir="${build.dir}/src">
           <include name="org/apache/orb/**/*.*"/>
        </srcfiles>
        <srcfiles dir="${build.dir}/lib">
           <include name="org/apache/orb/**/*.*"/>
        </srcfiles>
      </uptodate>
    </target>
  
    <target name="corbaloc.idl.context" depends="prepare">
      <uptodate property="corbaloc.idl.modified" targetfile="${idl.dir}/corbaloc.idl">
        <srcfiles dir="${build.dir}">
  	  <include name="**/*"/>
        </srcfiles>
      </uptodate>
    </target>
  
    <target name="corbaloc.idl" depends="corbaloc.idl.context" if="corbaloc.idl.modified">
  	<java failonerror="true" classname="${idl.class}" fork="true">
            <classpath>
  		<path refid="project.classpath"/>
  	    </classpath>
  	    <arg line="-silence"/>
  	    <arg line="-native URL java.net.URL"/>
  	    <arg line="-d ${build.dir}/src"/>
  	    <arg line="-I ${idl.dir}"/>
  	    <arg line="corbaloc.idl" />
        </java>
    </target>
  
    <target name="jar" depends="corbaloc.idl,jar.context" unless="jar.uptodate" >
        <echo message="Building corbaloc"/>
        <javac debug="off" destdir="${build.dir}/lib" deprecation="true" target="1.2">
          <classpath>
  	    <path refid="project.classpath" />
            <pathelement path="${build.dir}/lib" />
  	  </classpath>
          <src path="${build.dir}/src" />
          <src path="${src.dir}/java" />
          <include name="org/apache/orb/**"/>
        </javac>
        <copy todir="${build.dir}/lib">
          <fileset dir="${src.dir}/java">
            <include name="org/apache/orb/**/*.xinfo"/>
            <include name="org/apache/orb/**/*.xconfig"/>
            <include name="org/apache/orb/**/*.xprofile"/>
            <include name="org/apache/orb/**/*.xml"/>
            <include name="org/apache/orb/**/orb.properties"/>
          </fileset>
        </copy>
        <jar jarfile="${build.dir}/${project.jar}" basedir="${build.dir}/lib"  />
    </target>
  
    <!-- UTILITY TARGETS -->
  
    <target name="javadoc" depends="prepare" >
      <mkdir dir="${javadoc.root.path}/${ant.project.name}" />
      <javadoc destdir="${javadoc.root.path}/${ant.project.name}" 
  	doctitle="&lt;h1&gt;${project.title} ${VERSION}&lt;/h1&gt;" 
        noindex="false" author="false" 
        use="true"
        overview="${overview.html}"
  	windowtitle="${project.title}" 
        additionalparam="-breakiterator -J-Xmx128m"
        packagenames="org.*" 
        excludepackagenames="org.omg.*"
        >
          <sourcepath path="${src.dir}/java"/>
          <sourcepath path="${build.dir}/src"/>
          <classpath>
  	    <path refid="project.classpath" />
            <pathelement path="${build.lib}/${project.jar}" />
  	  </classpath>
  	  <link href="${jdk.href}" />
      </javadoc>
    </target>
   
  </project>
  
  
  
  1.1                  jakarta-avalon-apps/enterprise/corbaloc/build.properties
  
  Index: build.properties
  ===================================================================
  
  #
  # The build.properties file is read in by Ant.  It contains information 
  # related to resource dependencies and paths to related project resource
  #
  
  project.title=Apache ORB Corbaloc URL
  MAJOR=1
  MINOR=0
  MICRO=0
  
  
  
  
  1.1                  jakarta-avalon-apps/enterprise/corbaloc/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  build
  local.properties
  dist
  checkstyle.cache
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message