File: 01_ignore_lib.patch

package info (click to toggle)
jabsorb 1.3-4
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 2,832 kB
  • ctags: 1,483
  • sloc: java: 10,590; jsp: 420; xml: 372; makefile: 8
file content (99 lines) | stat: -rw-r--r-- 4,291 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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">