get maven 1.0.2 working
This commit is contained in:
1 parent
d689f8ef20
commit
f4ab9f48c6
48 files changed
+2384
-40
No files matched your search
+318
@@ -0,0 +1,318 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
index 7feeb26..fa65fc7 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -1,205 +1,109 @@
|
||||
-<?xml version="1.0"?>
|
||||
-
|
||||
-<project name="maven" default="maven:jar" basedir=".">
|
||||
-
|
||||
- <!-- Give user a chance to override without editing this file
|
||||
- (and without typing -D each time they invoke a target) -->
|
||||
-
|
||||
- <!-- Allow any user specific values to override the defaults -->
|
||||
- <property file="${user.home}/build.properties" />
|
||||
- <!-- Allow user defaults for this project -->
|
||||
- <property file="build.properties" />
|
||||
- <!-- Set default values for the build -->
|
||||
- <property file="project.properties" />
|
||||
-
|
||||
-
|
||||
- <!-- maven:start -->
|
||||
-
|
||||
- <!-- ================================================================== -->
|
||||
- <!-- D E L E G A T O R S -->
|
||||
- <!-- ================================================================== -->
|
||||
-
|
||||
-
|
||||
- <target name="maven:site">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="site"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:dist">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="dist"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:env">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="env"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:test">
|
||||
- <ant antfile="${maven.home}/plugins/test/build.xml" target="test"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:announce">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="announce"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:activity-log">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="activity-log"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:compile">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="compile"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:validate-war">
|
||||
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="validate-war"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:pdf">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="pdf"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:iutest">
|
||||
- <ant antfile="${maven.home}/plugins/iutest/build.xml" target="iutest"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:deploy-site">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="deploy-site"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:deploy-dist">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="deploy-dist"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:war">
|
||||
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="war"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:verify-project">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="verify-project"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:cvs-change-log">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="cvs-change-log"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:ear">
|
||||
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ear"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:cross-ref">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="cross-ref"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:update-jars">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="update-jars"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:validate-pom">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="validate-pom"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:install-jar">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="install-jar"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:fo">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="fo"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:javadocs">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="javadocs"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:validate-struts-war">
|
||||
- <ant antfile="${maven.home}/plugins/struts/build.xml" target="validate-struts-war"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:task-list">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="task-list"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:ejb">
|
||||
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ejb"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:docs">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="docs"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:clean">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="clean"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:dist-build">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="dist-build"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:metrics">
|
||||
- <ant antfile="${maven.home}/plugins/metrics/build.xml" target="metrics"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:docs-quick">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="docs-quick"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:run-singletest">
|
||||
- <ant antfile="${maven.home}/plugins/test/build.xml" target="run-singletest"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:check-source">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="check-source"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:generate-reactor">
|
||||
- <ant antfile="${maven.home}/plugins/reactor/build.xml" target="generate-reactor"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:jar">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="jar"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:maven-update">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="maven-update"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <target name="maven:gump-descriptor">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="gump-descriptor"/>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <!-- maven:end -->
|
||||
-
|
||||
+<?xml version="1.0" encoding="UTF-8"?>
|
||||
+
|
||||
+<!--build.xml generated by maven from project.xml version 0.8.1
|
||||
+on date September 20 2025, time 2232-->
|
||||
+<project default="jar" name="commons-graph" basedir=".">
|
||||
+ <!--Load local and user build preferences-->
|
||||
+ <property file="build.properties"></property>
|
||||
+ <property file="${user.home}/build.properties"></property>
|
||||
+ <!--Build properties-->
|
||||
+ <property name="defaulttargetdir" value="${basedir}/target"></property>
|
||||
+ <property name="libdir" value="${user.home}/.maven/repository"></property>
|
||||
+ <property name="classesdir" value="${basedir}/target/classes"></property>
|
||||
+ <property name="testclassesdir" value="${basedir}/target/test-classes"></property>
|
||||
+ <property name="testreportdir" value="${basedir}/target/test-reports"></property>
|
||||
+ <property name="distdir" value="${basedir}/dist"></property>
|
||||
+ <property name="javadocdir" value="${basedir}/dist/docs/api"></property>
|
||||
+ <property name="final.name" value="commons-graph-0.8.1"></property>
|
||||
+ <property name="proxy.host" value=""></property>
|
||||
+ <property name="proxy.port" value=""></property>
|
||||
+ <property name="proxy.username" value=""></property>
|
||||
+ <property name="proxy.password" value=""></property>
|
||||
+ <path id="build.classpath">
|
||||
+ <pathelement location="${libdir}/log4j/jars/log4j-1.1.3.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/jdepend/jars/jdepend-2.2.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/nsuml/jars/nsuml-0.4.20.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/commons-collections/jars/commons-collections-1.0.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/junit/jars/junit-3.7.jar"></pathelement>
|
||||
+ </path>
|
||||
+ <target name="init" description="o Initializes some properties">
|
||||
+ <mkdir dir="${libdir}"></mkdir>
|
||||
+ <!--Test if JUNIT is present in ANT classpath-->
|
||||
+ <available property="Junit.present" classname="junit.framework.Test"></available>
|
||||
+ <!--Test if user defined a proxy-->
|
||||
+ </target>
|
||||
+ <target name="compile" description="o Compile the code">
|
||||
+ <mkdir dir="${classesdir}"></mkdir>
|
||||
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
||||
+ <src>
|
||||
+ <pathelement location="${basedir}/src/java"></pathelement>
|
||||
+ </src>
|
||||
+ <classpath refid="build.classpath"></classpath>
|
||||
+ </javac>
|
||||
+ </target>
|
||||
+ <target name="jar" description="o Create the jar" depends="compile,test">
|
||||
+ <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"></jar>
|
||||
+ </target>
|
||||
+ <target name="clean" description="o Clean up the generated directories">
|
||||
+ <delete dir="${defaulttargetdir}"></delete>
|
||||
+ <delete dir="${distdir}"></delete>
|
||||
+ </target>
|
||||
+ <target name="dist" description="o Create a distribution" depends="jar, javadoc">
|
||||
+ <mkdir dir="dist"></mkdir>
|
||||
+ <copy todir="dist">
|
||||
+ <fileset dir="${defaulttargetdir}" includes="*.jar"></fileset>
|
||||
+ <fileset dir="${basedir}" includes="LICENSE*, README*"></fileset>
|
||||
+ </copy>
|
||||
+ </target>
|
||||
+ <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
|
||||
+ <fail message="There were test failures."></fail>
|
||||
+ </target>
|
||||
+ <target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
|
||||
+ <mkdir dir="${testreportdir}"></mkdir>
|
||||
+ <junit dir="${basedir}" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
|
||||
+ <sysproperty key="basedir" value="."></sysproperty>
|
||||
+ <formatter type="xml"></formatter>
|
||||
+ <formatter usefile="false" type="plain"></formatter>
|
||||
+ <classpath>
|
||||
+ <path refid="build.classpath"></path>
|
||||
+ <pathelement path="${testclassesdir}"></pathelement>
|
||||
+ <pathelement path="${classesdir}"></pathelement>
|
||||
+ </classpath>
|
||||
+ <batchtest todir="${testreportdir}">
|
||||
+ <fileset dir="${basedir}/src/test">
|
||||
+ <include name="**/*Test.java"></include>
|
||||
+ </fileset>
|
||||
+ </batchtest>
|
||||
+ </junit>
|
||||
+ </target>
|
||||
+ <target name="junit-present" unless="Junit.present" depends="init">
|
||||
+ <echo>================================= WARNING ================================</echo>
|
||||
+ <echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
|
||||
+ <echo>==========================================================================</echo>
|
||||
+ </target>
|
||||
+ <target name="compile-tests" if="Junit.present" depends="junit-present,compile">
|
||||
+ <mkdir dir="${testclassesdir}"></mkdir>
|
||||
+ <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
||||
+ <src>
|
||||
+ <pathelement location="${basedir}/src/test"></pathelement>
|
||||
+ </src>
|
||||
+ <classpath>
|
||||
+ <path refid="build.classpath"></path>
|
||||
+ <pathelement path="${classesdir}"></pathelement>
|
||||
+ </classpath>
|
||||
+ </javac>
|
||||
+ </target>
|
||||
+ <target name="javadoc" description="o Generate javadoc">
|
||||
+ <mkdir dir="${javadocdir}"></mkdir>
|
||||
+ <tstamp>
|
||||
+ <format pattern="2001-yyyy" property="year"></format>
|
||||
+ </tstamp>
|
||||
+ <property name="copyright" value="Copyright &copy; Apache Software Foundation. All Rights Reserved."></property>
|
||||
+ <property name="title" value="Graph 0.8.1 API"></property>
|
||||
+ <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="${basedir}/src/java" packagenames="org.apache.commons.graph.*">
|
||||
+ <classpath>
|
||||
+ <path refid="build.classpath"></path>
|
||||
+ </classpath>
|
||||
+ </javadoc>
|
||||
+ </target>
|
||||
</project>
|
||||
@@ -0,0 +1,28 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, commons-logging_1_0, commons-collections_2_0}: stdenv.mkDerivation rec {
|
||||
pname = "commons-beanutils";
|
||||
version = "1.6.1";
|
||||
outJar = "commons-beanutils.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = pname;
|
||||
rev = "BEANUTILS_1_6_1";
|
||||
hash = "sha256-AaUVo9mlvEt+UA95eL+F7p1YOKxAUYhYTCT8XXb5hNM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
CLASSPATH="${commons-logging_1_0}/commons-logging.jar:${commons-collections_2_0}/commons-collections.jar";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
ant dist
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
'';
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, commons-lang}: stdenv.mkDerivation rec {
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, commons-lang_1}: stdenv.mkDerivation rec {
|
||||
pname = "commons-cli";
|
||||
version = "1.0";
|
||||
outJar = "commons-cli-1.0-beta-2-dev.jar";
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
CLASSPATH="${commons-lang}/commons-lang-2.0.jar";
|
||||
CLASSPATH="${commons-lang_1}/commons-lang-1.0.jar";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, maven, commons-lang}: stdenv.mkDerivation rec {
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, maven, commons-lang_1}: stdenv.mkDerivation rec {
|
||||
pname = "commons-cli";
|
||||
version = "1.0";
|
||||
outJar = "commons-cli-1.0-beta-2-dev.jar";
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
CLASSPATH="${commons-lang}/commons-lang-2.0.jar";
|
||||
CLASSPATH="${commons-lang_1}/commons-lang-1.0.jar";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
index 3c48ef3..5b772fb 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -1,180 +1,30 @@
|
||||
-<?xml version="1.0"?>
|
||||
+<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
-<project name="cli" default="maven:jar" basedir=".">
|
||||
+<project default="dist" name="commons-cli" basedir=".">
|
||||
|
||||
- <!-- Give user a chance to override without editing this file
|
||||
- (and without typing -D each time they invoke a target) -->
|
||||
+ <property name="defaulttargetdir" value="target"></property>
|
||||
+ <property name="classesdir" value="target/classes"></property>
|
||||
+ <property name="final.name" value="commons-cli-1.0-beta-2-dev"></property>
|
||||
|
||||
- <!-- Allow any user specific values to override the defaults -->
|
||||
- <property file="${user.home}/build.properties" />
|
||||
-
|
||||
- <!-- Allow user defaults for this project -->
|
||||
- <property file="build.properties" />
|
||||
-
|
||||
- <!-- Set default values for the build -->
|
||||
- <property file="project.properties" />
|
||||
-
|
||||
- <!-- maven:start -->
|
||||
-
|
||||
- <!-- ================================================================== -->
|
||||
- <!-- D E L E G A T O R S -->
|
||||
- <!-- ================================================================== -->
|
||||
-
|
||||
- <target name="maven:gump-descriptor">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="gump-descriptor"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:maven-update">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="maven-update"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:update-jars">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="update-jars"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:jar">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="jar"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:docs-quick">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="docs-quick"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:run-singletest">
|
||||
- <ant antfile="${maven.home}/plugins/test/build.xml" target="run-singletest"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:compile">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="compile"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:jar-resources">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="jar-resources"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:fo">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="fo"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:cvs-change-log">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="cvs-change-log"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:war">
|
||||
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="war"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:generate-reactor">
|
||||
- <ant antfile="${maven.home}/build-reactor.xml" target="generate-reactor"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:cross-ref">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="cross-ref"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:deploy-site">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="deploy-site"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:ear">
|
||||
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ear"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:install-jar">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="install-jar"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:task-list">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="task-list"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:docs">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="docs"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:site">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="site"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:deploy-dist">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="deploy-dist"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:javadocs">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="javadocs"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:announce">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="announce"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:check-source">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="check-source"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:dist">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="dist"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:dist-build">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="dist-build"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:metrics">
|
||||
- <ant antfile="${maven.home}/plugins/metrics/build.xml" target="metrics"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:clean">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="clean"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:env">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="env"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:test">
|
||||
- <ant antfile="${maven.home}/plugins/test/build.xml" target="test"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:pdf">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="pdf"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:iutest">
|
||||
- <ant antfile="${maven.home}/plugins/iutest/build.xml" target="iutest"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:activity-log">
|
||||
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="activity-log"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:verify-project">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="verify-project"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:validate-pom">
|
||||
- <ant antfile="${maven.home}/plugins/core/build.xml" target="validate-pom"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="maven:validate-war">
|
||||
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="validate-war"/>
|
||||
- </target>
|
||||
-
|
||||
+ <target name="jar" description="o Create the jar">
|
||||
|
||||
- <!-- maven:end -->
|
||||
+ <mkdir dir="${classesdir}"></mkdir>
|
||||
|
||||
-<!-- ========== Helper Targets ============================================ -->
|
||||
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
||||
+ <src>
|
||||
+ <pathelement location="src/java"></pathelement>
|
||||
+ </src>
|
||||
+ </javac>
|
||||
|
||||
- <target name="clean" depends="maven:clean">
|
||||
- <delete file="velocity.log"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="site" depends="maven:site"/>
|
||||
-
|
||||
- <target name="test" depends="maven:test"/>
|
||||
-
|
||||
- <target name="compile" depends="maven:compile, maven:jar-resources"/>
|
||||
|
||||
- <target name="dist" depends="maven:dist-build"/>
|
||||
-
|
||||
+ <jar jarfile="target/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"></jar>
|
||||
+
|
||||
+ </target>
|
||||
+
|
||||
+ <target name="dist" description="o Create a distribution" depends="jar">
|
||||
+ <mkdir dir="dist"></mkdir>
|
||||
+ <copy todir="dist">
|
||||
+ <fileset dir="${defaulttargetdir}"></fileset>
|
||||
+ </copy>
|
||||
+ </target>
|
||||
</project>
|
||||
@@ -0,0 +1,30 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, commons-lang_1}: stdenv.mkDerivation rec {
|
||||
pname = "commons-cli";
|
||||
version = "1.0-beta-2";
|
||||
outJar = "commons-cli-1.0-beta-2-dev.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = pname;
|
||||
rev = "4353a45233ab7aeb4d99aed02cd40d3257dfc745";
|
||||
hash = "sha256-N0470jrYCSPZXPGh0lxzTdxGRMmeKd8aZWye/vwLnmM=";
|
||||
};
|
||||
|
||||
patches = [./commons-cli.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
CLASSPATH="${commons-lang_1}/commons-lang-1.0.jar";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
ant
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, commons-lang_1_1}: stdenv.mkDerivation rec {
|
||||
pname = "commons-io";
|
||||
version = "20030203.000550";
|
||||
outJar = "commons-io.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = pname;
|
||||
rev = "5cde3d9ced307f01ded5a4090db3737b1d55e8e5";
|
||||
hash = "sha256-Q3XvZP+UijBrTtmqAGftstnxvb39fewN2WJ+IqSMMcc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
CLASSPATH="${commons-lang_1_1}/commons-lang-1.1.jar";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
touch /build/LICENSE
|
||||
ant dist
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
index 7427788..c93f0d4 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -63,7 +63,8 @@
|
||||
destdir="${build.home}/classes"
|
||||
debug="${compile.debug}"
|
||||
deprecation="${compile.deprecation}"
|
||||
- optimize="${compile.optimize}">
|
||||
+ optimize="${compile.optimize}"
|
||||
+ target="1.4">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
<copy todir="${build.home}/classes" filtering="on">
|
||||
@@ -78,7 +79,8 @@
|
||||
destdir="${build.home}/tests"
|
||||
debug="${compile.debug}"
|
||||
deprecation="off"
|
||||
- optimize="${compile.optimize}">
|
||||
+ optimize="${compile.optimize}"
|
||||
+ target="1.4">
|
||||
<classpath refid="test.classpath"/>
|
||||
</javac>
|
||||
<copy todir="${build.home}/tests" filtering="on">
|
||||
@@ -0,0 +1,30 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
||||
pname = "commons-lang";
|
||||
version = "1.0";
|
||||
outJar = "commons-lang-1.0.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = pname;
|
||||
rev = "LANG_1_0";
|
||||
hash = "sha256-qE7t4xHM/4zUXIv/hWp6yPw+9SmcG7gbzYH2YxrkJIY=";
|
||||
};
|
||||
|
||||
patches = [./commons-lang.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
ln -s /build/source/LICENSE.txt /build/LICENSE
|
||||
ant dist
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
||||
pname = "commons-lang";
|
||||
version = "1.1";
|
||||
outJar = "commons-lang-1.1.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = pname;
|
||||
rev = "c6dcdde0070d30e57d7dfcc77e5300479cd35318";
|
||||
hash = "sha256-HPwI8i8aukS6H+zDLoGAHO7i4zaxhOTKjgccV4NrHVE=";
|
||||
};
|
||||
|
||||
patches = [./commons-lang.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
ln -s /build/source/LICENSE.txt /build/LICENSE
|
||||
ant dist
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
mv $out/commons-lang-1.1-dev.jar $out/commons-lang-1.1.jar
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{stdenv, fetchurl}: stdenv.mkDerivation rec {
|
||||
pname = "forehead";
|
||||
version = "1.0-beta-5";
|
||||
outJar = "forehead-1.0-beta-5.jar";
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://repo1.maven.org/maven2/forehead/forehead/1.0-beta-5/forehead-1.0-beta-5.jar";
|
||||
hash = "sha256-eluh5pJLIRuhbTt6mutSQoANinrtxdQDiN318K7qk88=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ${src} $out/forehead-1.0-beta-5.jar
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{stdenv, fetchurl}: stdenv.mkDerivation rec {
|
||||
pname = "plexus";
|
||||
version = "0.6";
|
||||
outJar = "plexus-0.6.jar";
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://repo1.maven.org/maven2/plexus/plexus/0.6/plexus-0.6.jar";
|
||||
hash = "sha256-cvnpWpRfRglWiFeiq+/6RbHCI5i81noBb1iofMkAWLw=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ${src} $out/plexus-0.6.jar
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{stdenv, fetchurl}: stdenv.mkDerivation rec {
|
||||
pname = "werkz";
|
||||
version = "20040426.222000";
|
||||
outJar = "werkz-20040426.222000.jar";
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://repo1.maven.org/maven2/werkz/werkz/20040426.222000/werkz-20040426.222000.jar";
|
||||
hash = "sha256-rBP5W3oQP5eWpNgQ2nHqNblELJsAGC77MK3jv06Fmaw=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ${src} $out/werkz-20040426.222000.jar
|
||||
'';
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, saxpath, dom4j}: stdenv.mkDerivation rec {
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7, saxpath, dom4j, jdom}: stdenv.mkDerivation rec {
|
||||
pname = "jaxen";
|
||||
version = "1.0-FCS";
|
||||
outJar = "jaxen-full.jar";
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
CLASSPATH="${saxpath}/saxpath.jar:${dom4j}/dom4j.jar";
|
||||
CLASSPATH="${saxpath}/saxpath.jar:${dom4j}/dom4j.jar:${jdom}/jdom.jar";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
|
||||
@@ -91,3 +91,39 @@ index 42fc619..832b248 100644
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
diff --git a/src/java/main/org/jaxen/jdom/DocumentNavigator.java b/src/java/main/org/jaxen/jdom/DocumentNavigator.java
|
||||
index 8955fcd..c414c3a 100644
|
||||
--- a/src/java/main/org/jaxen/jdom/DocumentNavigator.java
|
||||
+++ b/src/java/main/org/jaxen/jdom/DocumentNavigator.java
|
||||
@@ -231,7 +231,7 @@ public class DocumentNavigator extends DefaultNavigator
|
||||
nsMap.put( ns.getPrefix(), new XPathNamespace(elem, ns) );
|
||||
}
|
||||
|
||||
- current = current.getParent();
|
||||
+ current = (Element) current.getParent();
|
||||
}
|
||||
|
||||
nsMap.put( "xml", new XPathNamespace(elem, Namespace.XML_NAMESPACE) );
|
||||
@@ -458,7 +458,7 @@ public class DocumentNavigator extends DefaultNavigator
|
||||
}
|
||||
else if ( context instanceof Text )
|
||||
{
|
||||
- element = ((Text)context).getParent();
|
||||
+ element = (Element) ((Text)context).getParent();
|
||||
}
|
||||
else if ( context instanceof Attribute )
|
||||
{
|
||||
@@ -470,11 +470,11 @@ public class DocumentNavigator extends DefaultNavigator
|
||||
}
|
||||
else if ( context instanceof Comment )
|
||||
{
|
||||
- element = ((Comment)context).getParent();
|
||||
+ element = (Element) ((Comment)context).getParent();
|
||||
}
|
||||
else if ( context instanceof ProcessingInstruction )
|
||||
{
|
||||
- element = ((ProcessingInstruction)context).getParent();
|
||||
+ element = (Element) ((ProcessingInstruction)context).getParent();
|
||||
}
|
||||
|
||||
if ( element != null )
|
||||
@@ -0,0 +1,28 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
||||
pname = "jdom";
|
||||
version = "b10";
|
||||
outJar = "jdom.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hunterhacker";
|
||||
repo = pname;
|
||||
rev = "1259dc2d5131297f4cd806e307e4998d714dd80e";
|
||||
hash = "sha256-US2iw6cMEvXzKiRlZ9rBKvjYZd0AfCcEfZnQAQoltyA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
cd core
|
||||
ant
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp ./build/jdom.jar $out/jdom.jar
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{stdenv, fetchurl, fetchFromGitHub, jdk6, ant_1_7, commons-jelly, junit_3_8_1}: stdenv.mkDerivation rec {
|
||||
pname = "commons-jelly-tags-interaction";
|
||||
version = "1.0";
|
||||
outJar = "commons-jelly-tags-interaction-1.0-SNAPSHOT.jar";
|
||||
org = "commons-jelly";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = pname;
|
||||
rev = "717379e1b4db3edcc1404bd33242d6342530ad88";
|
||||
hash = "sha256-FACLrmbwn7Z0eYc7vb54O35Lu9j/a+7dB0+Jv6/xDUk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
CLASSPATH="${commons-jelly}/commons-jelly-1.0-beta-4-SNAPSHOT.jar:${junit_3_8_1}/junit.jar";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
cd jelly-tags/interaction
|
||||
ant dist
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{stdenv, fetchsvn, jdk6, ant_1_7, mavenDep, commons-jelly, commons-logging_1_0_3, werkz, fake-maven, commons-jelly-tags-ant,
|
||||
commons-grant}: stdenv.mkDerivation rec {
|
||||
pname = "maven-jelly-tags";
|
||||
version = "1.0.1";
|
||||
outJar = "maven-jelly-tags-1.0.1.jar";
|
||||
org = "maven";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "https://svn.apache.org/repos/asf/maven/maven-1/jelly-tags/tags/MAVEN_JELLY_TAGS_1_0_1";
|
||||
rev = "1928317";
|
||||
hash = "sha256-GeCVa/BzFqL5DrNVagWIZtn+fLs5+SpiDl7B6IuKj7w=";
|
||||
};
|
||||
|
||||
patches = [./commons-jelly-tags-maven.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7
|
||||
(mavenDep commons-jelly {})
|
||||
(mavenDep commons-logging_1_0_3 {})
|
||||
(mavenDep werkz {})
|
||||
(mavenDep fake-maven {})
|
||||
(mavenDep commons-jelly-tags-ant {})
|
||||
(mavenDep commons-grant {})];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
ant dist
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,302 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
new file mode 100644
|
||||
index 0000000..6e06165
|
||||
--- /dev/null
|
||||
+++ b/build.xml
|
||||
@@ -0,0 +1,112 @@
|
||||
+<?xml version="1.0" encoding="UTF-8"?>
|
||||
+
|
||||
+<!--build.xml generated by maven from project.xml version 1.0.1
|
||||
+ on date September 21 2025, time 1229-->
|
||||
+<project default="jar" name="maven-jelly-tags" basedir=".">
|
||||
+ <!--Load local and user build preferences-->
|
||||
+ <property file="build.properties"></property>
|
||||
+ <property file="${user.home}/build.properties"></property>
|
||||
+ <!--Build properties-->
|
||||
+ <property name="defaulttargetdir" value="${basedir}/target"></property>
|
||||
+ <property name="libdir" value="${user.home}/.maven/repository"></property>
|
||||
+ <property name="classesdir" value="${basedir}/target/classes"></property>
|
||||
+ <property name="testclassesdir" value="${basedir}/target/test-classes"></property>
|
||||
+ <property name="testreportdir" value="${basedir}/target/test-reports"></property>
|
||||
+ <property name="distdir" value="${basedir}/dist"></property>
|
||||
+ <property name="javadocdir" value="${basedir}/dist/docs/api"></property>
|
||||
+ <property name="final.name" value="maven-jelly-tags-1.0.1"></property>
|
||||
+ <property name="proxy.host" value=""></property>
|
||||
+ <property name="proxy.port" value=""></property>
|
||||
+ <property name="proxy.username" value=""></property>
|
||||
+ <property name="proxy.password" value=""></property>
|
||||
+ <path id="build.classpath">
|
||||
+ <pathelement location="${libdir}/commons-jelly/jars/commons-jelly-20030902.160215.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/commons-graph/jars/commons-graph-0.8.1.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/fake-maven/jars/fake-maven-1.0.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/werkz/jars/werkz-20040426.222000.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/ant/jars/ant-1.5.3-1.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/commons-logging/jars/commons-logging-1.0.3.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/commons-grant/jars/commons-grant-1.0-beta-4.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/commons-jelly/jars/commons-jelly-tags-ant-1.0.jar"></pathelement>
|
||||
+ <pathelement location="${libdir}/commons-lang/jars/commons-lang-2.0.jar"></pathelement>
|
||||
+ </path>
|
||||
+ <target name="init" description="o Initializes some properties">
|
||||
+ <mkdir dir="${libdir}"></mkdir>
|
||||
+ <!--Test if JUNIT is present in ANT classpath-->
|
||||
+ <available property="Junit.present" classname="junit.framework.Test"></available>
|
||||
+ </target>
|
||||
+ <target name="compile" description="o Compile the code">
|
||||
+ <mkdir dir="${classesdir}"></mkdir>
|
||||
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
||||
+ <src>
|
||||
+ <pathelement location="${basedir}/src/java/main"></pathelement>
|
||||
+ </src>
|
||||
+ <classpath refid="build.classpath"></classpath>
|
||||
+ </javac>
|
||||
+ </target>
|
||||
+ <target name="jar" description="o Create the jar" depends="compile,test">
|
||||
+ <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"></jar>
|
||||
+ </target>
|
||||
+ <target name="clean" description="o Clean up the generated directories">
|
||||
+ <delete dir="${defaulttargetdir}"></delete>
|
||||
+ <delete dir="${distdir}"></delete>
|
||||
+ </target>
|
||||
+ <target name="dist" description="o Create a distribution" depends="jar, javadoc">
|
||||
+ <mkdir dir="dist"></mkdir>
|
||||
+ <copy todir="dist">
|
||||
+ <fileset dir="${defaulttargetdir}" includes="*.jar"></fileset>
|
||||
+ <fileset dir="${basedir}" includes="LICENSE*, README*"></fileset>
|
||||
+ </copy>
|
||||
+ </target>
|
||||
+ <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
|
||||
+ <fail message="There were test failures."></fail>
|
||||
+ </target>
|
||||
+ <target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
|
||||
+ <mkdir dir="${testreportdir}"></mkdir>
|
||||
+ <junit dir="${basedir}" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
|
||||
+ <sysproperty key="basedir" value="."></sysproperty>
|
||||
+ <formatter type="xml"></formatter>
|
||||
+ <formatter usefile="false" type="plain"></formatter>
|
||||
+ <classpath>
|
||||
+ <path refid="build.classpath"></path>
|
||||
+ <pathelement path="${testclassesdir}"></pathelement>
|
||||
+ <pathelement path="${classesdir}"></pathelement>
|
||||
+ </classpath>
|
||||
+ <batchtest todir="${testreportdir}">
|
||||
+ <fileset dir="${basedir}/src/java/test">
|
||||
+ <include name="**/*Test.java"></include>
|
||||
+ </fileset>
|
||||
+ </batchtest>
|
||||
+ </junit>
|
||||
+ </target>
|
||||
+ <target name="junit-present" unless="Junit.present" depends="init">
|
||||
+ <echo>================================= WARNING ================================</echo>
|
||||
+ <echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
|
||||
+ <echo>==========================================================================</echo>
|
||||
+ </target>
|
||||
+ <target name="compile-tests" if="Junit.present" depends="junit-present,compile">
|
||||
+ <mkdir dir="${testclassesdir}"></mkdir>
|
||||
+ <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
||||
+ <src>
|
||||
+ <pathelement location="${basedir}/src/java/test"></pathelement>
|
||||
+ </src>
|
||||
+ <classpath>
|
||||
+ <path refid="build.classpath"></path>
|
||||
+ <pathelement path="${classesdir}"></pathelement>
|
||||
+ </classpath>
|
||||
+ </javac>
|
||||
+ </target>
|
||||
+ <target name="javadoc" description="o Generate javadoc">
|
||||
+ <mkdir dir="${javadocdir}"></mkdir>
|
||||
+ <tstamp>
|
||||
+ <format pattern="2001-yyyy" property="year"></format>
|
||||
+ </tstamp>
|
||||
+ <property name="copyright" value="Copyright &copy; Apache Software Foundation. All Rights Reserved."></property>
|
||||
+ <property name="title" value="Maven Jelly Tag Library 1.0.1 API"></property>
|
||||
+ <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="${basedir}/src/java/main" packagenames="org.apache.maven.jelly.tags.*">
|
||||
+ <classpath>
|
||||
+ <path refid="build.classpath"></path>
|
||||
+ </classpath>
|
||||
+ </javadoc>
|
||||
+ </target>
|
||||
+</project>
|
||||
diff --git a/src/java/main/org/apache/maven/jelly/tags/maven/GraphDependencyResolver.java b/src/java/main/org/apache/maven/jelly/tags/maven/GraphDependencyResolver.java
|
||||
deleted file mode 100644
|
||||
index 41ef723..0000000
|
||||
--- a/src/java/main/org/apache/maven/jelly/tags/maven/GraphDependencyResolver.java
|
||||
+++ /dev/null
|
||||
@@ -1,178 +0,0 @@
|
||||
-package org.apache.maven.jelly.tags.maven;
|
||||
-
|
||||
-/* ====================================================================
|
||||
- * Copyright 2001-2004 The Apache Software Foundation.
|
||||
- *
|
||||
- * Licensed under the Apache License, Version 2.0 (the "License");
|
||||
- * you may not use this file except in compliance with the License.
|
||||
- * You may obtain a copy of the License at
|
||||
- *
|
||||
- * http://www.apache.org/licenses/LICENSE-2.0
|
||||
- *
|
||||
- * Unless required by applicable law or agreed to in writing, software
|
||||
- * distributed under the License is distributed on an "AS IS" BASIS,
|
||||
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
- * See the License for the specific language governing permissions and
|
||||
- * limitations under the License.
|
||||
- * ====================================================================
|
||||
- */
|
||||
-
|
||||
-import org.apache.commons.graph.domain.dependency.DependencyGraph;
|
||||
-import org.apache.maven.project.Dependency;
|
||||
-import org.apache.maven.project.Project;
|
||||
-
|
||||
-import java.util.ArrayList;
|
||||
-import java.util.HashMap;
|
||||
-import java.util.Iterator;
|
||||
-import java.util.List;
|
||||
-
|
||||
-/**
|
||||
- * Takes a list of maven projects and determines the overall
|
||||
- * dependency ordering among the project.
|
||||
- *
|
||||
- * @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
|
||||
- * @version $Id: GraphDependencyResolver.java 112246 2004-11-06 14:18:06Z $
|
||||
- */
|
||||
-public class GraphDependencyResolver implements DependencyResolverInterface
|
||||
-{
|
||||
- /**
|
||||
- * The dependency graph.
|
||||
- */
|
||||
- private DependencyGraph dependencyGraph;
|
||||
-
|
||||
- /**
|
||||
- * List of maven projects to analyse.
|
||||
- */
|
||||
- private List projects;
|
||||
-
|
||||
- /**
|
||||
- * Flag to indicate whether the graph has been built.
|
||||
- */
|
||||
- private boolean graphBuilt;
|
||||
-
|
||||
- /**
|
||||
- * Default constructor.
|
||||
- */
|
||||
- public GraphDependencyResolver()
|
||||
- {
|
||||
- dependencyGraph = new DependencyGraph();
|
||||
- projects = new ArrayList();
|
||||
- graphBuilt = false;
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
- * @see org.apache.maven.jelly.tags.maven.DependencyResolverInterface#clear()
|
||||
- */
|
||||
- public void clear()
|
||||
- {
|
||||
- graphBuilt = false;
|
||||
- projects.clear();
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
- * @see org.apache.maven.jelly.tags.maven.DependencyResolverInterface#setProjects(List)
|
||||
- */
|
||||
- public void setProjects( List projects )
|
||||
- {
|
||||
- this.projects = projects;
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
- * @see org.apache.maven.jelly.tags.maven.DependencyResolverInterface#getSortedDependencies(Project)
|
||||
- */
|
||||
- public List getSortedDependencies( Project project )
|
||||
- {
|
||||
- return getSortedDependencies( project, false );
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
- * @see org.apache.maven.jelly.tags.maven.DependencyResolverInterface#getSortedDependencies(Project, boolean)
|
||||
- */
|
||||
- public List getSortedDependencies( Project project, boolean sourceBuild )
|
||||
- {
|
||||
- buildGraph();
|
||||
- List sortedDependencies = dependencyGraph.getSortedDependencies( project );
|
||||
-
|
||||
- if ( sourceBuild )
|
||||
- {
|
||||
- return sortedDependencies;
|
||||
- }
|
||||
-
|
||||
- return getBinaryDependencies( sortedDependencies );
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
- * @see org.apache.maven.jelly.tags.maven.DependencyResolverInterface#getSortedDependencies(boolean)
|
||||
- */
|
||||
- public List getSortedDependencies( boolean sourceBuild )
|
||||
- {
|
||||
- buildGraph();
|
||||
-
|
||||
- List sortedDependencies = dependencyGraph.getSortedDependencies();
|
||||
-
|
||||
- if ( sourceBuild )
|
||||
- {
|
||||
- return sortedDependencies;
|
||||
- }
|
||||
-
|
||||
- return getBinaryDependencies( sortedDependencies );
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
- * Get dependency graph for a build based on binary inputs.
|
||||
- *
|
||||
- * @param sortedDependencies List of projects that have been dependency sorted.
|
||||
- * @return The list of projects.
|
||||
- */
|
||||
- private List getBinaryDependencies( List sortedDependencies )
|
||||
- {
|
||||
- HashMap idMap = new HashMap();
|
||||
- for ( Iterator i = projects.iterator(); i.hasNext(); )
|
||||
- {
|
||||
- Project p = (Project) i.next();
|
||||
- idMap.put( p.getId(), p );
|
||||
- }
|
||||
-
|
||||
- List binaryDeps = new ArrayList();
|
||||
- for ( Iterator i = sortedDependencies.iterator(); i.hasNext(); )
|
||||
- {
|
||||
- Project p = (Project) i.next();
|
||||
-
|
||||
- Project dep = (Project) idMap.get( p.getId() );
|
||||
- if ( dep != null )
|
||||
- {
|
||||
- binaryDeps.add( dep );
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- return binaryDeps;
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
- * Build the dependency graph.
|
||||
- */
|
||||
- private void buildGraph()
|
||||
- {
|
||||
- if ( graphBuilt )
|
||||
- {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- for ( Iterator i = projects.iterator(); i.hasNext(); )
|
||||
- {
|
||||
- Project p = (Project) i.next();
|
||||
-
|
||||
- ArrayList dependencies = new ArrayList();
|
||||
- for ( Iterator j = p.getDependencies().iterator(); j.hasNext(); )
|
||||
- {
|
||||
- Dependency d = (Dependency) j.next();
|
||||
- Project dependentProject = new Project();
|
||||
- dependentProject.setId( d.getId() );
|
||||
- dependencies.add( dependentProject );
|
||||
- }
|
||||
-
|
||||
- dependencyGraph.addDependencies( p, dependencies );
|
||||
- }
|
||||
- graphBuilt = true;
|
||||
- }
|
||||
-}
|
||||
@@ -0,0 +1,30 @@
|
||||
{stdenv, fetchurl, fetchFromGitHub, jdk6, ant_1_7, commons-jelly, velocity_1_3, junit_3_8_1, commons-collections_2_1}: stdenv.mkDerivation rec {
|
||||
pname = "commons-jelly-tags-velocity";
|
||||
version = "1.0";
|
||||
outJar = "commons-jelly-tags-velocity-1.0-SNAPSHOT.jar";
|
||||
org = "commons-jelly";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = pname;
|
||||
rev = "717379e1b4db3edcc1404bd33242d6342530ad88";
|
||||
hash = "sha256-FACLrmbwn7Z0eYc7vb54O35Lu9j/a+7dB0+Jv6/xDUk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
CLASSPATH="${commons-jelly}/commons-jelly-1.0-beta-4-SNAPSHOT.jar:${velocity_1_3}/velocity-1.3.jar:${junit_3_8_1}/junit.jar:${commons-collections_2_1}/commons-collections.jar";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
cd jelly-tags/velocity
|
||||
ant dist
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
index 7ddc86b..3c537e9 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -80,9 +80,6 @@
|
||||
|
||||
<!-- Construct compile classpath -->
|
||||
<path id="site2.classpath">
|
||||
- <fileset dir="${jakarta-site2}/lib">
|
||||
- <include name="*.jar"/>
|
||||
- </fileset>
|
||||
</path>
|
||||
|
||||
|
||||
@@ -119,7 +116,7 @@
|
||||
|
||||
|
||||
<target name="jmxCheck">
|
||||
- <available classname="javax.management.MBeanInfo" property="jmx-present">
|
||||
+ <available classname="invalid.Class" property="jmx-present">
|
||||
<classpath>
|
||||
<pathelement location="${jmx.jar}"/>
|
||||
</classpath>
|
||||
@@ -185,7 +182,8 @@
|
||||
${stem}/jmx/*.java,
|
||||
${stem}/or/jms/*.java"
|
||||
deprecation="${deprecation}"
|
||||
- debug="on">
|
||||
+ debug="on"
|
||||
+ target="1.4">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
|
||||
@@ -206,7 +204,8 @@
|
||||
classpath="${classpath}"
|
||||
excludes="misc/*"
|
||||
deprecation="${deprecation}"
|
||||
- debug="on"/>
|
||||
+ debug="on"
|
||||
+ target="1.4"/>
|
||||
<rmic base="${javac.dest}"
|
||||
classname="examples.NumberCruncherServer"
|
||||
/>
|
||||
@@ -225,7 +224,8 @@
|
||||
excludes="${stem}/xml/examples/doc-files/**.java,
|
||||
${stem}/xml/Transform.java"
|
||||
deprecation="${deprecation}"
|
||||
- classpath="${classpath}">
|
||||
+ classpath="${classpath}"
|
||||
+ target="1.4">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
<copy file="${BSTEM}/xml/log4j.dtd"
|
||||
@@ -237,7 +237,8 @@
|
||||
<javac srcdir="${java.source.dir}"
|
||||
destdir="${javac.dest}"
|
||||
deprecation="${deprecation}"
|
||||
- includes="${stem}/net/SMTPAppender.java">
|
||||
+ includes="${stem}/net/SMTPAppender.java"
|
||||
+ target="1.4">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
</target>
|
||||
@@ -246,7 +247,8 @@
|
||||
<javac deprecation="${deprecation}"
|
||||
srcdir="${java.source.dir}"
|
||||
destdir="${javac.dest}"
|
||||
- includes="${stem}/net/JMS*.java">
|
||||
+ includes="${stem}/net/JMS*.java"
|
||||
+ target="1.4">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
</target>
|
||||
@@ -256,7 +258,8 @@
|
||||
srcdir="${java.source.dir}"
|
||||
destdir="${javac.dest}"
|
||||
includes="${stem}/jmx/*.java"
|
||||
- excludes="${stem}/jmx/T.java">
|
||||
+ excludes="${stem}/jmx/T.java"
|
||||
+ target="1.4">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
</target>
|
||||
@@ -0,0 +1,29 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
||||
pname = "log4j";
|
||||
version = "1.2.8";
|
||||
outJar = "lib/log4j-1.2.8.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = pname;
|
||||
rev = "e87c632e10235c397fcc485cca3b94b8d9fed593";
|
||||
hash = "sha256-CoLhJTF0Wj2EZ2gfB9RXwj/XVfrNpHElplJzRPUzCbg=";
|
||||
};
|
||||
|
||||
patches = [./log4j.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
ant dist
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./dist/* $out/
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
diff --git a/build/build.xml b/build/build.xml
|
||||
index 4afee06..9ca99f6 100644
|
||||
--- a/build/build.xml
|
||||
+++ b/build/build.xml
|
||||
@@ -186,7 +186,8 @@
|
||||
destdir="${build.dest}"
|
||||
debug="${debug}"
|
||||
deprecation="${deprecation}"
|
||||
- optimize="${optimize}">
|
||||
+ optimize="${optimize}"
|
||||
+ target="1.4">
|
||||
|
||||
<exclude name="org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.java"/>
|
||||
|
||||
@@ -205,7 +206,8 @@
|
||||
destdir="${build.dest}"
|
||||
debug="${debug}"
|
||||
deprecation="${deprecation}"
|
||||
- optimize="${optimize}">
|
||||
+ optimize="${optimize}"
|
||||
+ target="1.4">
|
||||
|
||||
<classpath refid="classpath"/>
|
||||
</javac>
|
||||
@@ -424,7 +426,8 @@
|
||||
:${example.dir}/event_example"
|
||||
debug="${debug}"
|
||||
deprecation="${deprecation}"
|
||||
- optimize="${optimize}">
|
||||
+ optimize="${optimize}"
|
||||
+ target="1.4">
|
||||
|
||||
<classpath>
|
||||
<path refid="classpath"/>
|
||||
@@ -867,7 +870,8 @@
|
||||
destdir="${demo.dest}"
|
||||
debug="${debug}"
|
||||
deprecation="${deprecation}"
|
||||
- optimize="${optimize}">
|
||||
+ optimize="${optimize}"
|
||||
+ target="1.4">
|
||||
|
||||
<classpath>
|
||||
<pathelement location="${build.dest}"/>
|
||||
@@ -0,0 +1,31 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
||||
pname = "velocity";
|
||||
version = "1.3";
|
||||
outJar = "velocity-1.3.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = "velocity-engine";
|
||||
rev = "d2ceb7fa0a0fa397a1a513af7b7cc0f53b0d1f80";
|
||||
hash = "sha256-eSZA1j1rRXbly8VWSTD6VNVRmgPR0mma+lYUn1HFQIM=";
|
||||
};
|
||||
|
||||
patches = [./velocity.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
cd build
|
||||
ant
|
||||
cd ..
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp ./bin/velocity-1.3.jar $out/velocity-1.3.jar
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
||||
pname = "velocity";
|
||||
version = "1.4-dev";
|
||||
outJar = "velocity-1.4-dev.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = "velocity-engine";
|
||||
rev = "b5be9d2f7675d83a4be069f0d6c19f09eabd08bb";
|
||||
hash = "sha256-WjJXLw8qcZA69GJAsYqTzwo8CuaWRs7LamBCTuZdKU0=";
|
||||
};
|
||||
|
||||
patches = [./velocity.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
cd build
|
||||
ant
|
||||
cd ..
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp ./bin/velocity-1.4-dev.jar $out/velocity-1.4-dev.jar
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{stdenv, fetchgit, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
||||
pname = "which";
|
||||
version = "1.0";
|
||||
outJar = "which.jar";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.befatorinc.de/Bommels05/commons-xml.git";
|
||||
rev = "1d6cda7c464b289c9672d0698f82e1671e0211df";
|
||||
hash = "sha256-B7rov3ddAv4EGqKLsu3GepgM2XqOaAVOCNjTcICD+F0=";
|
||||
};
|
||||
|
||||
patches = [./which.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
#ln -s /build/source/LICENSE.txt /build/LICENSE
|
||||
ant -f java/which.xml
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./java/build/which.jar $out/which.jar
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git a/java/which.xml b/java/which.xml
|
||||
index dd2d6b0..f8e7c16 100644
|
||||
--- a/java/which.xml
|
||||
+++ b/java/which.xml
|
||||
@@ -69,7 +69,8 @@ Build file for org.apache.env.Which service. No dependencies.
|
||||
<target name="compile" depends="init"
|
||||
description="Compile all classes">
|
||||
<javac srcdir="${src.dir}" destdir="${build.classes.dir}"
|
||||
- includes="${env.subdir}/*.java" />
|
||||
+ includes="${env.subdir}/*.java"
|
||||
+ target="1.4"/>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile"
|
||||
@@ -0,0 +1,90 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
index cf65324..30127b3 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -229,6 +229,8 @@ Copyright:
|
||||
org/w3c/dom/html/**
|
||||
org/w3c/dom/ranges/**
|
||||
org/w3c/dom/traversal/**"
|
||||
+ target="1.4"
|
||||
+ source="1.4"
|
||||
/>
|
||||
</target>
|
||||
|
||||
@@ -275,7 +277,9 @@ Copyright:
|
||||
classpath="${build.dir}/classes:${tools.dir}/${jar.apis}"
|
||||
debug="${debug}"
|
||||
includeAntRuntime="false"
|
||||
- includeJavaRuntime="true"/>
|
||||
+ includeJavaRuntime="true"
|
||||
+ target="1.4"
|
||||
+ source="1.4"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
@@ -292,7 +296,9 @@ Copyright:
|
||||
classpath="${tools.dir}/${jar.apis}:${build.dir}/classes:./tools/junit.jar"
|
||||
debug="${debug}"
|
||||
includeAntRuntime="false"
|
||||
- includeJavaRuntime="true"/>
|
||||
+ includeJavaRuntime="true"
|
||||
+ target="1.4"
|
||||
+ source="1.4"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
@@ -791,7 +797,9 @@ Copyright:
|
||||
deprecation="${deprecation}"
|
||||
optimize="${optimize}"
|
||||
includeAntRuntime="false"
|
||||
- includeJavaRuntime="true"/>
|
||||
+ includeJavaRuntime="true"
|
||||
+ target="1.4"
|
||||
+ source="1.4"/>
|
||||
</target>
|
||||
|
||||
|
||||
@@ -907,7 +915,9 @@ Copyright:
|
||||
deprecation="${deprecation}"
|
||||
optimize="${optimize}"
|
||||
includeAntRuntime="false"
|
||||
- includeJavaRuntime="true"/>
|
||||
+ includeJavaRuntime="true"
|
||||
+ target="1.4"
|
||||
+ source="1.4"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
@@ -1122,7 +1132,9 @@ Copyright:
|
||||
optimize="${optimize}"
|
||||
includeAntRuntime="false"
|
||||
includeJavaRuntime="true"
|
||||
- classpath="${tools.dir}/${jar.apis}"/>
|
||||
+ classpath="${tools.dir}/${jar.apis}"
|
||||
+ target="1.4"
|
||||
+ source="1.4"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
@@ -1149,7 +1161,9 @@ Copyright:
|
||||
classpath="${build.dir}/classes:${build.dir}/dom3-${jar.parser}:${build.dir}/dom3-${jar.apis}:${tools.dir}/${jar.apis}"
|
||||
debug="${debug}"
|
||||
includeAntRuntime="false"
|
||||
- includeJavaRuntime="true"/>
|
||||
+ includeJavaRuntime="true"
|
||||
+ target="1.4"
|
||||
+ source="1.4"/>
|
||||
|
||||
|
||||
|
||||
@@ -1177,7 +1191,9 @@ Copyright:
|
||||
classpath="${build.dir}/classes:./tools/junit.jar"
|
||||
debug="${debug}"
|
||||
includeAntRuntime="false"
|
||||
- includeJavaRuntime="true"/>
|
||||
+ includeJavaRuntime="true"
|
||||
+ target="1.4"
|
||||
+ source="1.4"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
@@ -0,0 +1,29 @@
|
||||
{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
||||
pname = "xerces";
|
||||
version = "2.4.0";
|
||||
outJar = "xercesImpl.jar";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = "xerces-j";
|
||||
rev = "9744d47d2a3d70ae5514de7b14fe1e391de29d63";
|
||||
hash = "sha256-KPKDRFt6jo4wT+RX76vhoL/Hxwwn4XUHao9XdvdAq+o=";
|
||||
};
|
||||
|
||||
patches = [./xerces.patch];
|
||||
|
||||
nativeBuildInputs = [jdk6 ant_1_7];
|
||||
|
||||
env = {
|
||||
JAVA_HOME="${jdk6}";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
./build.sh jar
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r ./build/xercesImpl.jar $out/xercesImpl.jar
|
||||
'';
|
||||
}
|
||||
File renamed without changes.
Reference in new issue
Block a user