You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2003/06/06 01:05:05 UTC

cvs commit: avalon-phoenix/lib/container spice-xmlpolicy-1.0.jar

donaldp     2003/06/05 16:05:05

  Modified:    .        build.xml
  Removed:     lib/container spice-xmlpolicy-1.0.jar
  Log:
  Upgrade to release version of xmlpolicy.
  
  Revision  Changes    Path
  1.252     +44 -2     avalon-phoenix/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/avalon-phoenix/build.xml,v
  retrieving revision 1.251
  retrieving revision 1.252
  diff -u -r1.251 -r1.252
  --- build.xml	3 Jun 2003 13:03:38 -0000	1.251
  +++ build.xml	5 Jun 2003 23:05:04 -0000	1.252
  @@ -106,6 +106,10 @@
       <property name="configkit.jar" value="${repo.dir}/spice-configkit/spice-configkit-1.1.2/spice-configkit-1.1.2.jar"/>
       <fileset id="configkit.fileset" dir="${lib.dir}" includes="repo/spice-configkit/spice-configkit-1.1.2/lib/*.jar"/>
   
  +    <!-- Invoke ant get-xmlpolicy' to get these -->
  +    <property name="xmlpolicy.jar" value="${repo.dir}/spice-xmlpolicy/spice-xmlpolicy-1.0/spice-xmlpolicy-1.0.jar"/>
  +    <fileset id="xmlpolicy.fileset" dir="${lib.dir}" includes="repo/spice-xmlpolicy/spice-xmlpolicy-1.0/lib/*.jar"/>
  +
       <!-- Invoke ant get-loggerstore' to get these -->
       <property name="loggerstore.jar" value="${repo.dir}/spice-loggerstore/spice-loggerstore-0.5/spice-loggerstore-0.5.jar"/>
       <fileset id="loggerstore.fileset" dir="${lib.dir}" includes="repo/spice-loggerstore/spice-loggerstore-0.5/lib/*.jar"/>
  @@ -121,6 +125,7 @@
           <pathelement location="${wrapper.jar}"/>
           <pathelement path="${log4j.jar}"/>
           <pathelement path="${configkit.jar}"/>
  +        <pathelement path="${xmlpolicy.jar}"/>
           <pathelement path="${loggerstore.jar}"/>
           <pathelement path="${classman.jar}"/>
           <pathelement path="${mx4j.jar}"/>
  @@ -139,6 +144,7 @@
           </fileset>
           <pathelement path="${target.classes}"/>
           <fileset refid="classman.fileset"/>
  +        <fileset refid="xmlpolicy.fileset"/>
       </path>
   
       <path id="test.class.path">
  @@ -441,6 +447,37 @@
       </target>
   
       <!-- =================================================================== -->
  +    <!-- XMLPolicy Tasks.                                                    -->
  +    <!-- =================================================================== -->
  +    <target name="check-xmlpolicy-init" depends="init">
  +        <available property="xmlpolicy.present" classname="org.realityforge.xmlpolicy.metadata.PolicyMetaData">
  +            <classpath refid="project.class.path"/>
  +        </available>
  +    </target>
  +
  +    <target name="check-xmlpolicy" depends="check-xmlpolicy-init" unless="xmlpolicy.present">
  +        <echo>********************************</echo>
  +        <echo>* Please execute target        *</echo>
  +        <echo>* 'get-xmlpolicy' in the main  *</echo>
  +        <echo>* build.xml build file         *</echo>
  +        <echo>* to download one and          *</echo>
  +        <echo>* a half Mb of Spice XMLPolicy *</echo>
  +        <echo>********************************</echo>
  +        <fail message="Spice xmlpolicy needed. See above."/>
  +    </target>
  +
  +    <!-- Get the jars from the configkit project. -->
  +    <target name="get-xmlpolicy" description="Get the Spice XMLPolicy distribution from SourceForge.">
  +        <mkdir dir="${repo.dir}/spice-xmlpolicy"/>
  +        <get src="http://osdn.dl.sourceforge.net/sourceforge/spice/spice-xmlpolicy-1.0.tar.gz"
  +            dest="${repo.dir}/spice-xmlpolicy/spice-xmlpolicy.tar.gz"
  +            verbose="true"
  +            usetimestamp="true"/>
  +        <gunzip src="${repo.dir}/spice-xmlpolicy/spice-xmlpolicy.tar.gz" dest="${repo.dir}/spice-xmlpolicy"/>
  +        <untar src="${repo.dir}/spice-xmlpolicy/spice-xmlpolicy.tar" dest="${repo.dir}/spice-xmlpolicy"/>
  +    </target>
  +
  +    <!-- =================================================================== -->
       <!-- LoggerStore Tasks.                                                    -->
       <!-- =================================================================== -->
       <target name="check-loggerstore-init" depends="init">
  @@ -524,7 +561,7 @@
       <!-- Check requirements of environment -->
       <target name="check-environment"
           depends="check-mx4j, check-log4j, check-loggerstore,
  -                 check-configkit, check-classman, check-wrapper">
  +                 check-configkit, check-xmlpolicy, check-classman, check-wrapper">
           <available property="xerces.present" type="file" file="${xerces.jar}"/>
           <available property="servlet.present" classname="javax.servlet.Servlet">
               <classpath refid="project.class.path"/>
  @@ -847,6 +884,11 @@
           <copy todir="${bin.dist.tools.lib}" flatten="true">
               <fileset refid="configkit.fileset"/>
           </copy>
  +
  +        <copy file="${xmlpolicy.jar}" todir="${bin.dist.container.lib}"/>
  +        <copy todir="${bin.dist.container.lib}" flatten="true">
  +            <fileset refid="xmlpolicy.fileset"/>
  +        </copy>
           <copy file="${loggerstore.jar}" todir="${bin.dist.container.lib}"/>
           <copy todir="${bin.dist.container.lib}" flatten="true">
               <fileset refid="loggerstore.fileset"/>
  @@ -1297,7 +1339,7 @@
       </target>
   
       <target name="get-all-dependencies"
  -        depends="get-mx4j,get-log4j,get-loggerstore,get-configkit,get-classman,get-wrapper"
  +        depends="get-mx4j,get-log4j,get-loggerstore,get-configkit,get-xmlpolicy,get-classman,get-wrapper"
           description="Meta-task to get all optional libaries"/>
   
       &forrest-targets;
  
  
  

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