jabsorb (1.3-2) 01_ignore_lib.patch

Summary

 build.xml |   38 +++-----------------------------------
 1 file changed, 3 insertions(+), 35 deletions(-)

    
download this patch

Patch contents

Description: Disable the maven rules.
Author: Kalle Kivimaa <killer@debian.org>

diff -urNad a/build.xml b/build.xml
--- a/build.xml	2008-12-20 18:49:40.000000000 +0200
+++ b/build.xml	2008-12-20 18:49:41.000000000 +0200
@@ -27,7 +27,7 @@
 
 -->
 
-<project name="jabsorb" default="dist" basedir="." xmlns:artifact="urn:maven-artifact-ant">
+<project name="jabsorb" default="dist" basedir=".">
  
   <!-- necessary to be called for every other target, even clean! -->
   <target name="init">
@@ -46,17 +46,13 @@
       <path refid="default-classpath" />
       <pathelement path="${app-jar}" />
     </path>
-    <taskdef
-      resource="org/apache/maven/artifact/ant/antlib.xml"
-      uri="urn:maven-artifact-ant"
-      classpath="lib-ant/maven-ant-tasks-2.0.7.jar"/>
   </target>
   
   <target name="init-build">
     <mkdir dir="${build}" />
   </target>
 
-  <target name="compile" depends="init,init-build,copy-dependencies" description="Compiles the source into the build directory">
+  <target name="compile" depends="init,init-build" description="Compiles the source into the build directory">
   	<mkdir dir="${build.classes}"/>
   	<javac debug="true" source="1.4" srcdir="${src}" destdir="${build.classes}">
       <classpath refid="default-classpath" />
@@ -79,10 +75,6 @@
   </target>
 
   <target name="setup-dependencies">
-    <path id="maven-ant-tasks.classpath" path="lib-ant/maven-ant-tasks-2.0.7.jar" />
-    <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
-        uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />
-    <artifact:pom id="maven.project" file="pom.xml" />
   </target>
   
   <target name="check-dependencies" depends="init"
@@ -94,15 +86,6 @@
   <target name="copy-dependencies" depends="init,setup-dependencies,check-dependencies"
       unless="dependencies.present"
       description="Download and copy test dependencies to the ${lib-ext} directory (only once)">
-    <artifact:dependencies filesetId="dependencies.fileset" pathId="dependencies.path">
-      <pom refid="maven.project"/>
-    </artifact:dependencies>
-    <!-- <delete dir="${lib-ext}" includes="*"/> -->
-    <copy todir="${lib-ext}" flatten="true">
-        <fileset refid="dependencies.fileset"/>
-    </copy>
-    <pathconvert refid="dependencies.path"  property="dependencies.string"/>
-    <echo file="${lib-ext}/dependencies"> ${dependencies.string} </echo>
   </target>
 	
   <!-- this target does not currently work on JDK 1.4 right now due to maven dependancy/repository issues -->
@@ -177,7 +160,7 @@
     <war destfile="${app-war}" basedir="${webapp}" excludes="**/*~,WEB-INF/web.xml*" webxml="${webapp}/WEB-INF/web.xml" />
   </target>
 
-  <target name="docs" depends="init,copy-dependencies" description="Creates the javadoc api documentation">
+  <target name="docs" depends="init" description="Creates the javadoc api documentation">
     <echo message="Making docs to ${webapp}/docs" />
     <javadoc source="1.4" sourcepath="${src}"
              destdir="${webapp}/docs"
@@ -297,16 +280,6 @@
   <!-- create minified and gzipped versions of jsonrpc.js -->
   <target name="compress-web-content" depends="init">
   
-    <!-- Create minimized version with the yui compressor 
-         see http://www.julienlecomte.net/yuicompressor/ -->
-
-    <echo>Creating jsonrpc-min.js from jsonrpc.js using the YUI compressor.</echo>
-    <java jar="lib-ant/yuicompressor-2.2.5.jar" fork="true" failonerror="true">
-      <arg value="-o"/>
-      <arg value="${webapp}/jsonrpc-min.js"/>
-      <arg value="${webapp}/jsonrpc.js"/>
-    </java>
-
     <!-- create .gz versions - some web/app servers (such as jetty) can
          automatically scan for gzipped static content with
          a .gz extensions -->
@@ -391,11 +364,6 @@
   </target>
 	
 	<target name="install-locally" depends="dist" description="Install artifacts into local repository">
-	    <jar destfile="${build}/${app-prefix}-sources.jar" basedir="${src}" excludes="*~" />
-		<artifact:install file="${app-jar}">
-			<pom file="pom.xml"/>
-			<attach file="${build}/${app-prefix}-sources.jar" classifier="sources"/>
-		</artifact:install>
 	</target>
 	
 	<target name="run" depends="copy-dependencies,compile.test" description="Runs the jabsorb webapp using jetty">