Changeset 2890

Show
Ignore:
Timestamp:
13/07/07 22:46:50 (5 years ago)
Author:
michael
Message:

Split into core and restlet configurations.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build.xml

    r2858 r2890  
    1 <project name="xtc" default="help"
     1<project name="xtc" default="help" xmlns:ivy="antlib:org.apache.ivy.ant"
    22        <!-- Sarugo common ant configuration --> 
    33        <property name="ant.lib.dir" value="ant" /> 
     
    55        <property name="build.common.url" value="${ant.server}/build-common.xml" /> 
    66        <property name="build.common.file" value="${ant.lib.dir}/build-common.xml" /> 
    7         <condition property="download-build.common.required"> 
    8                 <not> 
    9                         <available file="${build.common.file}" type="file" /> 
    10                 </not> 
    11         </condition> 
    12         <condition property="bootstrap.required"> 
    13                 <not> 
    14                         <available file="${ant.lib.dir}" type="dir" /> 
    15                 </not> 
     7        <condition property="build.common.available"> 
     8                <available file="${build.common.file}" type="file" /> 
    169        </condition> 
    1710 
     
    1912                <get src="${build.common.url}" dest="${build.common.file}" usetimestamp="true" /> 
    2013        </target> 
    21          
    22         <import file="${build.common.file}" optional="true"/> 
    23          
     14 
     15        <import file="${build.common.file}" optional="true" /> 
     16 
    2417        <target name="bootstrap" description="Download build dependencies and libraries"> 
    2518                <mkdir dir="${ant.lib.dir}" /> 
    26                 <antcall target="download-build.common"/> 
    27                 <antcall target="common.bootstrap"/> 
     19                <antcall target="download-build.common" /> 
     20                <antcall target="common.bootstrap" /> 
     21        </target> 
     22 
     23        <target name="project.package"> 
     24                <mkdir dir="${dist.dir}" /> 
     25                <jar destfile="${dist.dir}/${project.name}-${project.rev}.jar"> 
     26                        <fileset dir="${build.dir}/main/java"> 
     27                                <include name="**/*.class" /> 
     28                                <exclude name="org/sarugo/xtc/restlet/**/*.class" /> 
     29                        </fileset> 
     30                        <fileset dir="${build.dir}/main/resources" /> 
     31                </jar> 
     32                <jar destfile="${dist.dir}/${project.name}-restlet-${project.rev}.jar"> 
     33                        <fileset dir="${build.dir}/main/java"> 
     34                                <include name="org/sarugo/xtc/restlet/**/*.class" /> 
     35                        </fileset> 
     36                </jar> 
     37                <!-- Use ivy to copy the runtime dependencies to distribution directory --> 
     38                <ivy:retrieve pattern="${dist.dir}/[artifact]-[revision].[ext]" conf="default" useOrigin="true" /> 
     39                <property name="skip.common.package" value="true" /> 
    2840        </target> 
    2941 
  • trunk/ivy.xml

    r2876 r2890  
    99    <conf name="test" visibility="private" extends="compile"/> 
    1010  </configurations> 
     11  <publications> 
     12        <artifact name="${project.name}" conf="default" /> 
     13        <artifact name="${project.name}-restlet" conf="restlet" /> 
     14  </publications> 
    1115  <dependencies> 
    1216    <dependency org="de.odysseus.juel" name="juel" rev="2.1.0" conf="default"/>