You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ss...@apache.org on 2024/06/21 12:04:47 UTC

(xmlgraphics-commons) branch main updated: Switch to using mvn for dependancies

This is an automated email from the ASF dual-hosted git repository.

ssteiner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/xmlgraphics-commons.git


The following commit(s) were added to refs/heads/main by this push:
     new 389e6d8  Switch to using mvn for dependancies
389e6d8 is described below

commit 389e6d8d0505846a5954efa7e7da956961e0cfb7
Author: Simon Steiner <ss...@apache.org>
AuthorDate: Fri Jun 21 13:04:03 2024 +0100

    Switch to using mvn for dependancies
---
 build.xml                         |  39 +++++++++++++++++++++++++++++++++++++-
 lib/build/byte-buddy-1.9.10.jar   | Bin 3272730 -> 0 bytes
 lib/build/hamcrest.core-1.1.0.jar | Bin 34332 -> 0 bytes
 lib/build/mockito-core-2.28.2.jar | Bin 591179 -> 0 bytes
 lib/build/objenesis-1.0.0.jar     | Bin 49509 -> 0 bytes
 lib/build/resolver-1.2.jar        | Bin 84091 -> 0 bytes
 lib/commons-io-2.11.0.jar         | Bin 327135 -> 0 bytes
 lib/commons-logging-1.0.4.jar     | Bin 38015 -> 0 bytes
 8 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/build.xml b/build.xml
index 3ca19f9..563e082 100644
--- a/build.xml
+++ b/build.xml
@@ -70,6 +70,15 @@
   <!-- .NET support (using IKVM) -->
   <property name="ikvm.dir" value="."/>
   <property name="ikvmc" value="${ikvm.dir}/bin/ikvmc.exe"/>
+  
+  <property name="copy.dependencies.arg" value=""/>
+  
+  <condition property="isWindows">
+    <os family="windows" />
+  </condition>
+  <condition property="isUnix">
+    <os family="unix" />
+  </condition>  
 
   <tstamp>
     <format property="ts" pattern="yyyyMMdd-HHmmss-z"/>
@@ -297,7 +306,35 @@
     </jar>
   </target>
 
-  <target name="package" depends="jar-main, package.NET" description="Generates the jar files"/>
+  <target name="package" depends="mvn-jars,jar-main, package.NET" description="Generates the jar files"/>
+  
+  <target name="mvn-jars" depends="mvn-jars-unix,mvn-jars-windows" unless="dev">
+    <delete failonerror="false">
+      <fileset dir="${basedir}/lib">
+        <include name="*.jar"/>
+        <exclude name="checkstyle*.jar"/>
+      </fileset>
+    </delete>
+    <copy todir="${basedir}/lib">
+      <fileset dir="${basedir}/target/dependency">
+        <include name="*.jar"/>
+      </fileset>
+    </copy>
+  </target>
+  <target name="mvn-jars-unix" if="isUnix" unless="dev">
+    <exec executable="mvn" dir="${basedir}" failonerror="true">
+      <arg value="clean"/>
+      <arg line="${copy.dependencies.arg} dependency:copy-dependencies -DskipTests"/>
+    </exec>
+  </target>
+  <target name="mvn-jars-windows" if="isWindows" unless="dev">
+    <exec executable="cmd" dir="${basedir}" failonerror="true">
+	  <arg value="/c"/>
+	  <arg value="mvn"/>    
+      <arg value="clean"/>
+      <arg line="${copy.dependencies.arg} dependency:copy-dependencies -DskipTests"/>
+    </exec>
+  </target>   
 
   <!-- =================================================================== -->
   <!-- Testing                                                             -->
diff --git a/lib/build/byte-buddy-1.9.10.jar b/lib/build/byte-buddy-1.9.10.jar
deleted file mode 100644
index 239fc80..0000000
Binary files a/lib/build/byte-buddy-1.9.10.jar and /dev/null differ
diff --git a/lib/build/hamcrest.core-1.1.0.jar b/lib/build/hamcrest.core-1.1.0.jar
deleted file mode 100644
index 5b2b484..0000000
Binary files a/lib/build/hamcrest.core-1.1.0.jar and /dev/null differ
diff --git a/lib/build/mockito-core-2.28.2.jar b/lib/build/mockito-core-2.28.2.jar
deleted file mode 100644
index 525ff47..0000000
Binary files a/lib/build/mockito-core-2.28.2.jar and /dev/null differ
diff --git a/lib/build/objenesis-1.0.0.jar b/lib/build/objenesis-1.0.0.jar
deleted file mode 100644
index 1f1b76d..0000000
Binary files a/lib/build/objenesis-1.0.0.jar and /dev/null differ
diff --git a/lib/build/resolver-1.2.jar b/lib/build/resolver-1.2.jar
deleted file mode 100644
index e535bdc..0000000
Binary files a/lib/build/resolver-1.2.jar and /dev/null differ
diff --git a/lib/commons-io-2.11.0.jar b/lib/commons-io-2.11.0.jar
deleted file mode 100644
index be507d9..0000000
Binary files a/lib/commons-io-2.11.0.jar and /dev/null differ
diff --git a/lib/commons-logging-1.0.4.jar b/lib/commons-logging-1.0.4.jar
deleted file mode 100644
index b73a80f..0000000
Binary files a/lib/commons-logging-1.0.4.jar and /dev/null differ


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org