tbrugz avatar tbrugz committed 4813cda

build: added publish target ; version = 0.5.0 ; added sqldump v0.9.0 as ivy dependency

Comments (0)

Files changed (4)

 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/>
 	<classpathentry kind="lib" path="lib/geronimo-servlet_2.5_spec-1.2.jar"/>
-	<classpathentry kind="lib" path="lib/sqldump.jar"/>
-	<classpathentry kind="lib" path="lib/kmlutils.jar"/>
+	<classpathentry kind="lib" path="lib/sqldump-0.9.0.jar"/>
 	<classpathentry kind="lib" path="lib/junit-4.11.jar"/>
 	<classpathentry kind="lib" path="lib/hamcrest-core-1.3.jar"/>
 	<classpathentry kind="lib" path="lib/winstone-0.9.10.jar"/>
 	<classpathentry kind="lib" path="lib/httpclient-4.2.1.jar"/>
 	<classpathentry kind="lib" path="lib/httpcore-4.2.1.jar"/>
-	<classpathentry kind="lib" path="lib/h2-1.3.168.jar"/>
+	<classpathentry kind="lib" path="lib/h2-1.3.170.jar"/>
 	<classpathentry kind="lib" path="lib/gson-2.2.2.jar"/>
 	<classpathentry kind="lib" path="lib/json-simple-1.1.1.jar"/>
 	<classpathentry kind="lib" path="lib/apache-any23-core-0.7.0-incubating.jar"/>
 <project name="queryon" xmlns:ivy="antlib:org.apache.ivy.ant">
 
 	<property name="proj.name" value="queryon"/>
+	
 	<property file="build.properties"/>
+	<property file="version.properties"/>
+	<property file="ivysettings.properties"/>
 	
 	<property name="src.dir" value="src"/>
 	<property name="src.test.dir" value="src_test"/>
 	</target>
 	
 	<target name="test" depends="compile">
-		<junit printsummary="yes">
+		<junit printsummary="yes" showoutput="true">
 			<classpath refid="classpath.test"/>
 			<formatter type="xml"/>
 			<test name="tbrugz.queryon.QueryOnTestSuite" todir="${test.dir}"/>
 		</junit>
 	</target>
-	
-	<target name="resolve-ivy" description="retrieve dependencies with ivy">
+
+	<target name="config-ivy" if="ivy.settings.dir">
+		<ivy:settings file="${ivy.settings.dir}/ivysettings.xml"/>
+	</target>
+
+	<target name="resolve-ivy" depends="config-ivy" description="retrieve dependencies with ivy">
 		<ivy:retrieve haltonfailure="false"/>
 	</target>
 
-	<target name="resolve-get">
+	<target name="publish" depends="jar,war,config-ivy" description="publish this project in the ivy repository">
+		<property name="revision" value="${version}"/>
+		<property name="resolver" value="local"/>
+		<ivy:info file="ivy.xml"/>
+		<ivy:publish resolver="${resolver}" pubrevision="${revision}" status="release" update="true" overwrite="true">
+			<artifacts pattern="${dist.dir}/[module].[ext]" />
+		</ivy:publish>
+		<echo message="project ${ant.project.name} released with version ${revision} to ${resolver}"/>
+	</target>
+
+	<!--target name="resolve-get">
 		<get dest="${lib.dir}/kmlutils.jar" src="http://cdn.bitbucket.org/tbrugz/kmlutils/downloads/svg2kml.jar" verbose="true"/>
 		<get dest="${lib.dir}" src="http://cdn.bitbucket.org/tbrugz/sqldump/downloads/sqldump.jar" verbose="true"/>
-	</target>
+	</target-->
 	
 </project>
 <ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-            xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+		xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
 	<info organisation="org.bitbucket.tbrugz" module="queryon"/>
+	<publications>
+		<artifact name="queryon" type="jar"/>
+		<!-- artifact name="queryon" type="war"/ -->
+	</publications>
 	<dependencies>
+		<dependency name="sqldump" rev="0.9.0"/>
+		
 		<dependency org="commons-logging" name="commons-logging" rev="1.1.1"/>
 		<dependency org="log4j" name="log4j" rev="1.2.16"/>
 
-		<dependency org="com.h2database" name="h2" rev="1.3.168"/>
+		<dependency org="com.h2database" name="h2" rev="1.3.170"/>
 		<!-- dependency org="org.apache.geronimo.specs" name="geronimo-servlet_3.0_spec" rev="1.0"/ -->
 		<dependency org="org.apache.geronimo.specs" name="geronimo-servlet_2.5_spec" rev="1.2"/>
 

version.properties

+version=0.5.0
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.