Changeset 2845
- Timestamp:
- 05/07/07 16:58:31 (5 years ago)
- Files:
-
- trunk/.classpath (deleted)
- trunk/.project (deleted)
- trunk/build.properties (added)
- trunk/build.xml (modified) (6 diffs)
- trunk/ivy.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build.xml
r2800 r2845 4 4 <property name="ant.server" value="http://ant.sarugo.org" /> 5 5 <property name="sarugo.ant.file" value="${ant.lib.dir}/common-build.xml" /> 6 <!-- Ant-Eclipse --> 7 <property name="ant.eclipse.url" value="http://trac.sarugo.org/ant-eclipse/attachment/wiki/WikiStart/ant-eclipse.jar?format=raw" /> 8 <property name="ant.eclipse.file" value="${ant.lib.dir}/ant-eclipse.jar" /> 9 <condition property="download-ant.eclipse.required"> 10 <not> 11 <available file="${ant.eclipse.file}" type="file" /> 12 </not> 13 </condition> 6 14 <!-- Ivy configuration --> 7 15 <property name="ivy.server" value="${ant.server}/ivy" /> … … 13 21 </not> 14 22 </condition> 15 <!-- Project directories-->23 <!-- Project Configuration --> 16 24 <property name="src.dir" value="src" /> 17 25 <property name="build.dir" value="build" /> 18 26 <property name="dist.dir" value="dist" /> 19 27 <property name="lib.dir" value="lib" /> 28 <property file="build.properties"/> 20 29 <condition property="bootstrap.required"> 21 30 <not> … … 31 40 <get src="${ivy.server}/${ivy.version}/ivy-${ivy.version}.jar" dest="${ivy.dest.file}" usetimestamp="true" /> 32 41 </target> 33 42 43 <target name="download-ant.eclipse" if="download-ant.eclipse.required"> 44 <get src="${ant.eclipse.url}" dest="${ant.eclipse.file}"/> 45 </target> 46 34 47 <target name="bootstrap" description="Downloads common ant scripts and libraries"> 35 48 <mkdir dir="${ant.lib.dir}" /> 36 49 <antcall target="download-ivy" /> 37 <path id="ivy.lib.path"> 38 <fileset file="${ivy.dest.file}" /> 39 </path> 40 <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" /> 50 <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${ivy.dest.file}" /> 41 51 <ivy:configure file="ivysettings.xml" /> 42 52 <ivy:resolve file="ivy.xml" /> 43 53 <ivy:retrieve pattern="${lib.dir}/[artifact]-[revision].[ext]" /> 54 <antcall target="download-ant.eclipse" /> 55 <taskdef name="eclipse" classname="org.sarugo.ant.eclipse.EclipseTask" classpath="${ant.eclipse.file}" /> 56 <eclipse> 57 <sourcepath> 58 <dirset dir="${src.dir}" includes="main/*" /> 59 <dirset dir="${src.dir}" includes="test/*" /> 60 </sourcepath> 61 <globmapper from="${src.dir}/*" to="${build.dir}/*"/> 62 <classpath> 63 <fileset dir="${lib.dir}" includes="**/*.jar" /> 64 </classpath> 65 </eclipse> 44 66 </target> 45 67 46 <target name=" init" if="bootstrap.required">68 <target name="pre-init" if="bootstrap.required"> 47 69 <fail message="You need to run ant bootstrap" /> 70 </target> 71 72 <target name="init" depends="pre-init"> 73 <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${ivy.dest.file}" /> 48 74 </target> 49 75 … … 89 115 <batchtest> 90 116 <fileset dir="${src.dir}/test/java"> 117 <include name="**/*Test.java" /> 91 118 <include name="**/*Tests.java" /> 92 119 </fileset> … … 97 124 <target name="package" depends="compile" description="Build distribution files"> 98 125 <mkdir dir="${dist.dir}" /> 99 <jar destfile="${dist.dir}/ xtc.jar">126 <jar destfile="${dist.dir}/${project.name}-${project.rev}.jar"> 100 127 <fileset dir="${build.dir}/main/java" /> 101 128 <fileset dir="${build.dir}/main/resources" /> 102 129 </jar> 103 130 <!-- Use ivy to copy the runtime dependencies to distribution directory --> 104 <path id="ivy.lib.path">105 <fileset file="${ivy.dest.file}" />106 </path>107 <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" />108 131 <ivy:configure file="ivysettings.xml" /> 109 132 <ivy:resolve file="ivy.xml" /> … … 114 137 </target> 115 138 116 <target name="publish" depends="package" description="Publish distribution to repository"> 117 <ivy:publish resolver="local" artifactspattern="${dist.dir}/[artifact].[ext]" /> 139 <target name="publish" depends="package" description="Publish distribution to Ivy repository"> 140 <ivy:configure file="ivysettings.xml" /> 141 <ivy:resolve file="ivy.xml" /> 142 <ivy:publish resolver="local" artifactspattern="${dist.dir}/[artifact]-[revision].[ext]" /> 118 143 </target> 119 144 trunk/ivy.xml
r2800 r2845 1 1 <ivy-module version="1.3"> 2 <info organisation="sarugo" module=" xtc" revision="1.0.0" status="integration">2 <info organisation="sarugo" module="${project.name}" revision="${project.rev}" status="${project.status}"> 3 3 <license name="CDDL" url="http://www.sun.com/cddl/"/> 4 4 </info> … … 9 9 </configurations> 10 10 <dependencies> 11 <dependency org="org.restlet" name="org.restlet" rev="1.0. 1" conf="default,compile->default"/>12 <dependency org="com.noelios.restlet" name="com.noelios.restlet.ext.simple" rev="1.0. 1" conf="default"/>11 <dependency org="org.restlet" name="org.restlet" rev="1.0.2" conf="default,compile->default"/> 12 <dependency org="com.noelios.restlet" name="com.noelios.restlet.ext.simple" rev="1.0.2" conf="test->default"/> 13 13 <dependency org="de.odysseus.juel" name="juel" rev="2.1.0" conf="default,compile->default"/> 14 14 <dependency org="junit" name="junit" rev="3.8.1" conf="test->default"/>
