get maven 1.0.2 working

This commit is contained in:
Some One 2025-09-18 20:12:51 +02:00
parent d689f8ef20
commit f4ab9f48c6
48 changed files with 2384 additions and 40 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchzip, jdk6, ant_1_7}: stdenv.mkDerivation rec { {stdenv, fetchzip, jdk6, ant_1_7, junit_3_8_1}: stdenv.mkDerivation rec {
pname = "ant"; pname = "ant";
version = "1.5.3-1"; version = "1.5.3-1";
outJar = "lib/ant.jar"; outJar = "lib/ant.jar";
@ -13,6 +13,7 @@
nativeBuildInputs = [jdk6 ant_1_7]; nativeBuildInputs = [jdk6 ant_1_7];
env = { env = {
JAVA_HOME="${jdk6}"; JAVA_HOME="${jdk6}";
CLASSPATH="${junit_3_8_1}/junit.jar";
}; };
buildPhase = '' buildPhase = ''

View File

@ -1,5 +1,5 @@
{stdenv, fetchFromGitHub, jdk6, ant_1_7, ivyDep, ivyDepHook, ant_1_6, commons-cli, commons-httpclient_3, oro, commons-vfs, {stdenv, fetchFromGitHub, jdk6, ant_1_7, ivyDep, ivyDepHook, ant_1_6, commons-cli, commons-httpclient_3, oro, commons-vfs,
jsch_0_1_25, junit_3_8_2, commons-lang, xerces, xerces-api}: stdenv.mkDerivation rec { jsch_0_1_25, junit_3_8_2, commons-lang, xerces_2_6_2, xerces-api}: stdenv.mkDerivation rec {
pname = "ivy"; pname = "ivy";
version = "2.0.0-beta2"; version = "2.0.0-beta2";
@ -22,7 +22,7 @@ jsch_0_1_25, junit_3_8_2, commons-lang, xerces, xerces-api}: stdenv.mkDerivation
(ivyDep jsch_0_1_25 {}) (ivyDep jsch_0_1_25 {})
(ivyDep junit_3_8_2 {}) (ivyDep junit_3_8_2 {})
(ivyDep commons-lang {}) (ivyDep commons-lang {})
(ivyDep xerces {}) (ivyDep xerces_2_6_2 {})
(ivyDep xerces-api {})]; (ivyDep xerces-api {})];
env = { env = {

318
java/.patch Normal file
View File

@ -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 &amp;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>

View File

@ -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/
'';
}

View File

@ -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"; pname = "commons-cli";
version = "1.0"; version = "1.0";
outJar = "commons-cli-1.0-beta-2-dev.jar"; outJar = "commons-cli-1.0-beta-2-dev.jar";
@ -14,7 +14,7 @@
env = { env = {
JAVA_HOME="${jdk6}"; JAVA_HOME="${jdk6}";
CLASSPATH="${commons-lang}/commons-lang-2.0.jar"; CLASSPATH="${commons-lang_1}/commons-lang-1.0.jar";
}; };
buildPhase = '' buildPhase = ''

View File

@ -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"; pname = "commons-cli";
version = "1.0"; version = "1.0";
outJar = "commons-cli-1.0-beta-2-dev.jar"; outJar = "commons-cli-1.0-beta-2-dev.jar";
@ -14,7 +14,7 @@
env = { env = {
JAVA_HOME="${jdk6}"; JAVA_HOME="${jdk6}";
CLASSPATH="${commons-lang}/commons-lang-2.0.jar"; CLASSPATH="${commons-lang_1}/commons-lang-1.0.jar";
}; };
buildPhase = '' buildPhase = ''

207
java/commons-cli.patch Normal file
View File

@ -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>

View File

@ -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/
'';
}

29
java/commons-io.nix Normal file
View File

@ -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/
'';
}

24
java/commons-lang.patch Normal file
View File

@ -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">

30
java/commons-lang_1.nix Normal file
View File

@ -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/
'';
}

31
java/commons-lang_1_1.nix Normal file
View File

@ -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
'';
}

View File

@ -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
'';
}

18
java/download/plexus.nix Normal file
View File

@ -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
'';
}

18
java/download/werkz.nix Normal file
View File

@ -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
'';
}

View File

@ -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"; pname = "jaxen";
version = "1.0-FCS"; version = "1.0-FCS";
outJar = "jaxen-full.jar"; outJar = "jaxen-full.jar";
@ -16,7 +16,7 @@
env = { env = {
JAVA_HOME="${jdk6}"; JAVA_HOME="${jdk6}";
CLASSPATH="${saxpath}/saxpath.jar:${dom4j}/dom4j.jar"; CLASSPATH="${saxpath}/saxpath.jar:${dom4j}/dom4j.jar:${jdom}/jdom.jar";
}; };
buildPhase = '' buildPhase = ''

View File

@ -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 )

28
java/jdom.nix Normal file
View File

@ -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
'';
}

View File

@ -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/
'';
}

View File

@ -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/
'';
}

View File

@ -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 &amp;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;
- }
-}

View File

@ -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/
'';
}

83
java/log4j.patch Normal file
View File

@ -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>

29
java/log4j_1_2_8.nix Normal file
View File

@ -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/
'';
}

44
java/velocity.patch Normal file
View File

@ -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}"/>

31
java/velocity_1_3.nix Normal file
View File

@ -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
'';
}

31
java/velocity_1_4.nix Normal file
View File

@ -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
'';
}

29
java/which.nix Normal file
View File

@ -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
'';
}

14
java/which.patch Normal file
View File

@ -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"

90
java/xerces.patch Normal file
View File

@ -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>
<!-- =================================================================== -->

29
java/xerces_2_4_0.nix Normal file
View File

@ -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
'';
}

24
maven/fake.nix Normal file
View File

@ -0,0 +1,24 @@
{stdenv, fetchFromGitHub, jdk6, ant_1_7, mavenDep, commons-grant, commons-jelly}: stdenv.mkDerivation rec {
pname = "fake-maven";
version = "1.0";
outJar = "fake-maven.jar";
src = ./fake;
nativeBuildInputs = [jdk6 ant_1_7
(mavenDep commons-grant {})
(mavenDep commons-jelly {})];
env = {
JAVA_HOME="${jdk6}";
};
buildPhase = ''
ant dist
'';
installPhase = ''
mkdir $out
cp -r ./dist/* $out/
'';
}

50
maven/fake/build.xml Normal file
View File

@ -0,0 +1,50 @@
<project default="jar" name="fake-maven" 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="fake-maven"></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-20030625.032346.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>
</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">
<jar jarfile="${defaulttargetdir}/${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}" includes="*.jar"></fileset>
</copy>
</target>
</project>

View File

@ -0,0 +1,174 @@
package org.apache.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.
* ====================================================================
*/
/**
* MavenSession constants.
*
* @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
* @version $Id: MavenConstants.java 122358 2004-07-06 12:45:48Z brett $
*/
public class MavenConstants
{
/**
* This is an internal version for MavenSession self updating
* procedures. A MavenSession installation can query a MavenSession
* installation distributor to see if it is up-to-date
* and self-update if required.
*/
public static final int MAVEN_VERSION = 3;
/**
* This is the version of the POM that this version of
* MavenSession operates with. If a descrepancy is found between
* the version of the POM being used and the version of
* the POM that this version of MavenSession can deal with then
* the POM will be transformed into compliance.
*/
public static final int POM_VERSION = 3;
/** Online tag. */
public static final String ONLINE = "maven.mode.online";
/** Jar Override tag. */
public static final String JAR_OVERRIDE = "maven.jar.override";
/** Jar Override property tag. */
public static final String JAR_OVERRIDE_PROPERTY = "maven.jar.";
/** Local Repository tag. */
public static final String REPO_LOCAL = "maven.repo.local";
/** Local Repository tag. */
public static final String REPO_REMOTE = "maven.repo.remote";
/** Local Repository enabled tag. */
public static final String REPO_REMOTE_ENABLED = "maven.repo.remote.enabled";
/** Proxy host tag. */
public static final String PROXY_HOST = "maven.proxy.host";
/** Proxy port tag. */
public static final String PROXY_PORT = "maven.proxy.port";
/** Proxy user name tag. */
public static final String PROXY_USERNAME = "maven.proxy.username";
/** Proxy password tag. */
public static final String PROXY_PASSWORD = "maven.proxy.password";
/** Proxy loginHost tag. */
public static final String PROXY_LOGINHOST = "maven.proxy.ntlm.host";
/** Proxy loginDomain tag. */
public static final String PROXY_LOGINDOMAIN = "maven.proxy.ntlm.domain";
/** Download meter type variable. */
public static final String DOWNLOAD_METER = "maven.download.meter";
/** Snapshot JAR signifier tag. */
public static final String SNAPSHOT_SIGNIFIER = "SNAPSHOT";
/** Driver properties */
public static final String DRIVER_PROPERTIES = "/driver.properties";
/** Project build file name. (maven.xml) */
public static final String BUILD_FILE_NAME = "maven.xml";
/** Defaults goal name property. */
public static final String DEFAULT_GOAL = "maven.default.goal";
/** Defaults properties */
public static final String DEFAULTS_PROPERTIES = "/defaults.properties";
// Context tags.
/** MavenSession home context tag **/
public static final String MAVEN_HOME = "maven.home";
/** MavenSession home local context tag **/
public static final String MAVEN_HOME_LOCAL = "maven.home.local";
/** MavenSession plugins context tag **/
public static final String MAVEN_PLUGINS_DIR = "maven.plugin.dir";
/** MavenSession unpacked plugins context tag **/
public static final String MAVEN_UNPACKED_PLUGINS_DIR = "maven.plugin.unpacked.dir";
/** MavenSession local plugins context tag **/
public static final String MAVEN_USER_PLUGINS_DIR = "maven.plugin.user.dir";
/** MavenSession build file url context tag **/
public static final String MAVEN_BUILD_FILE_URL = "maven.project.buildFile.url";
/** MavenSession ant project context tag **/
public static final String MAVEN_ANT_PROJECT = "maven.ant.project";
/** MavenSession POM context tag **/
public static final String MAVEN_POM = "pom";
/** MavenSession goals context tag **/
public static final String MAVEN_GOALS = "maven.goals";
/** MavenSession project verifier context tag **/
public static final String MAVEN_PROJECT_VERIFIER = "maven.project.verifier";
/** Werkz project context tag **/
public static final String WERKZ_PROJECT = "org.apache.commons.jelly.werkz.Project";
/** Reactor projects context tag **/
public static final String REACTOR_PROJECT = "maven.reactorProjects";
/** Plugin Manager tag. */
public static final String PLUGIN_MANAGER = "maven.plugin.manager";
/** Jelly XMLOutput tag. */
public static final String XML_OUTPUT = "maven.xmlOutput";
/** MavenSession debug flag tag. */
public static final String DEBUG_ON = "maven.debugOn";
/** MavenSession debug flag tag. */
public static final String EMACS_MODE_ON = "maven.emacsModeOn";
/** Descriptor directory tag. (project.xml) */
public static final String DESCRIPTOR_DIRECTORY = "maven.descriptorDirectory";
/** Project build file tag. (maven.xml) */
public static final String BUILD_FILE = "maven.projectBuildFile";
/** Project descriptor file tag. (project.xml) */
public static final String DESCRIPTOR_FILE = "maven.descriptorFile";
/** Dependency classpath tag. */
public static final String DEPENDENCY_CLASSPATH = "maven.dependency.classpath";
/** Dependency classpath tag. */
public static final String SESSION = "maven.session";
/** Reactor/Maven subproject Build failure tag. */
public static final String BUILD_FAILURE = "maven.build.failure";
/** Reactor/Maven subproject Build failure project list tag. */
public static final String FAILED_PROJECTS = "failedProjects";
/** Maven compile sourceroots. */
public static final String COMPILE_SOURCEROOTS = "compile.sourceroots";
/** Maven test compile sourceroots. */
public static final String TEST_COMPILE_SOURCEROOTS = "test.compile.sourceroots";
}

View File

@ -0,0 +1,141 @@
package org.apache.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 java.io.PrintStream;
import java.io.PrintWriter;
/**
* The base class for all exceptions thrown by MavenSession. Taken liberally from
* <a href="http://jakarta.apache.org/ant/">Ant's</a> BuildException
*
* @version $Id: MavenException.java 122095 2004-03-01 22:36:39Z evenisse $
*/
public class MavenException extends Exception
{
/** Exception that might have caused this one. */
private Throwable cause;
/**
* Creates a new instance of <code>MavenException</code> without detail
* message.
*/
public MavenException()
{
}
/**
* Constructs an instance of <code>MavenException</code> with the specified
* detail message.
*
* @param msg the detail message.
*/
public MavenException( String msg )
{
super( msg );
}
/**
* Constructs an exception with the given message and exception as
* a root cause.
*
* @param message A description of or information about the exception.
* Should not be <code>null</code> unless a cause is specified.
* @param cause The exception that might have caused this one.
* May be <code>null</code>.
*/
public MavenException( String message, Throwable cause )
{
super( message );
this.cause = cause;
}
/**
* Constructs an exception with the given exception as a root cause.
*
* @param cause The exception that might have caused this one.
* Should not be <code>null</code>.
*/
public MavenException( Throwable cause )
{
super( cause.toString() );
this.cause = cause;
}
/**
* Returns the nested exception, if any.
*
* @return the nested exception, or <code>null</code> if no
* exception is associated with this one
*/
public Throwable getException()
{
return cause;
}
/**
* Prints the stack trace for this exception and any
* nested exception to <code>System.err</code>.
*/
public void printStackTrace()
{
printStackTrace( System.err );
}
/**
* Prints the stack trace of this exception and any nested
* exception to the specified PrintStream.
*
* @param ps The PrintStream to print the stack trace to.
* Must not be <code>null</code>.
*/
public void printStackTrace( PrintStream ps )
{
synchronized ( ps )
{
super.printStackTrace( ps );
if ( cause != null )
{
ps.println( "--- Nested Exception ---" );
cause.printStackTrace( ps );
}
}
}
/**
* Prints the stack trace of this exception and any nested
* exception to the specified PrintWriter.
*
* @param pw The PrintWriter to print the stack trace to.
* Must not be <code>null</code>.
*/
public void printStackTrace( PrintWriter pw )
{
synchronized ( pw )
{
super.printStackTrace( pw );
if ( cause != null )
{
pw.println( "--- Nested Exception ---" );
cause.printStackTrace( pw );
}
}
}
}

View File

@ -0,0 +1,21 @@
package org.apache.maven;
import java.util.List;
import org.apache.maven.plugin.PluginManager;
import org.apache.maven.project.Project;
import org.apache.maven.jelly.MavenJellyContext;
public class MavenSession {
public PluginManager getPluginManager() {
return null;
}
public void attainGoals(Project project, List goals) {
}
public MavenJellyContext getRootContext() {
return null;
}
}

View File

@ -0,0 +1,36 @@
package org.apache.maven;
import java.util.List;
import java.io.File;
import java.io.IOException;
import org.apache.maven.jelly.MavenJellyContext;
import org.apache.maven.project.Project;
import org.apache.maven.MavenException;
public class MavenUtils {
public static List getProjects(File directory, String includes, String excludes, MavenJellyContext context) {
return null;
}
public static List getGoalListFromCsv(String s) {
return null;
}
public static String makeRelativePath(File basedir, String path) throws IOException {
return null;
}
public static String makeAbsolutePath(File basedir, String dir) throws IOException {
return null;
}
public static Project getProject(File projectDescriptor, MavenJellyContext parentContext, boolean useParentPom) throws MavenException {
return null;
}
public static Project getProject(File projectDescriptor, MavenJellyContext parentContext) throws MavenException {
return null;
}
}

View File

@ -0,0 +1,29 @@
package org.apache.maven.jelly;
import org.apache.maven.project.Project;
import org.apache.maven.MavenSession;
import org.apache.commons.grant.GrantProject;
import org.apache.commons.jelly.JellyContext;
public class MavenJellyContext extends JellyContext {
public void setVariable(String property, Object value) {
}
public Object getVariable(String name) {
return null;
}
public Project getProject() {
return null;
}
public MavenSession getMavenSession() {
return null;
}
public GrantProject getAntProject() {
return null;
}
}

View File

@ -0,0 +1,20 @@
package org.apache.maven.plugin;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import org.apache.maven.project.Project;
import org.apache.maven.MavenException;
public class PluginManager {
public void uninstallPlugin( String artifactId ) throws IOException {
}
public void installPlugin(File file, Project parentProject, boolean cache) throws MavenException {
}
public void processDependencies(Project project) throws MalformedURLException, Exception {
}
}

View File

@ -0,0 +1,5 @@
package org.apache.maven.plugin;
public class UnknownPluginException extends Exception {
}

View File

@ -0,0 +1,9 @@
package org.apache.maven.project;
public class Dependency {
public String getId() {
return null;
}
}

View File

@ -0,0 +1,34 @@
package org.apache.maven.project;
import java.util.List;
import org.apache.maven.jelly.MavenJellyContext;
public class Project {
public String getId() {
return null;
}
public void setId(String id) {
}
public String getArtifactId() {
return null;
}
public List getDependencies() {
return null;
}
public String getName() {
return null;
}
public void verifyDependencies() {
}
public MavenJellyContext getPluginContext(String plugin) throws Exception {
return null;
}
}

View File

@ -0,0 +1,27 @@
package org.apache.maven.project;
import java.util.List;
public class Resource {
public List getIncludes() {
return null;
}
public List getExcludes() {
return null;
}
public boolean getFiltering() {
return false;
}
public String getTargetPath() {
return null;
}
public String getDirectory() {
return null;
}
}

View File

@ -1,4 +1,4 @@
{stdenv, fetchFromGitHub, jdk6, mavenDep, junit_3_8_1, maven_1}: stdenv.mkDerivation rec { {stdenv, fetchFromGitHub, jdk6, mavenDep, junit_3_8_1, maven_1, commons-jelly-tags-maven}: stdenv.mkDerivation rec {
pname = "maven"; pname = "maven";
version = "2.0.0-SNAPSHOT"; version = "2.0.0-SNAPSHOT";
@ -14,7 +14,8 @@
settings = ./maven.properties; settings = ./maven.properties;
nativeBuildInputs = [jdk6 maven_1 nativeBuildInputs = [jdk6 maven_1
(mavenDep junit_3_8_1 {})]; (mavenDep junit_3_8_1 {})
(mavenDep commons-jelly-tags-maven {})];
env = { env = {
JAVA_HOME="${jdk6}"; JAVA_HOME="${jdk6}";

95
maven/maven.patch Normal file
View File

@ -0,0 +1,95 @@
diff --git a/build-bootstrap.xml b/build-bootstrap.xml
index 5fb7b20..e7d88d8 100644
--- a/build-bootstrap.xml
+++ b/build-bootstrap.xml
@@ -190,7 +190,8 @@
<mkdir dir="${maven.bootstrap.install.dir}/lib/endorsed" />
<move todir="${maven.bootstrap.install.dir}/lib/endorsed">
<fileset dir="${maven.bootstrap.install.dir}/lib">
- <include name="xml-apis-*.jar" />
+ <include name="jaxen-*.jar" />
+ <include name="saxpath-*.jar" />
<include name="xerces-*.jar" />
</fileset>
</move>
@@ -198,7 +199,8 @@
<!-- Don't duplicate endorsed files -->
<delete>
<fileset dir="${maven.bootstrap.install.dir}/lib">
- <include name="xml-apis-*.jar" />
+ <include name="jaxen-*.jar" />
+ <include name="saxpath-*.jar" />
<include name="xerces-*.jar" />
</fileset>
</delete>
diff --git a/project.xml b/project.xml
index 4b8b6ec..87bcd7c 100644
--- a/project.xml
+++ b/project.xml
@@ -453,7 +453,7 @@
<dependency>
<id>dom4j</id>
- <version>1.4-dev-8</version>
+ <version>1.6.1</version>
<url>http://www.dom4j.org/</url>
<properties>
<description>ouch</description>
@@ -660,11 +660,6 @@
<version>20040613.030723</version>
<url>http://jakarta.apache.org/commons/jelly/tags/xml/</url>
</dependency>
- <dependency>
- <id>commons-graph</id>
- <version>0.8.1</version>
- <url>http://jakarta.apache.org/commons/sandbox/graph/</url>
- </dependency>
<dependency>
<id>commons-jexl</id>
<version>1.0-beta-1</version>
@@ -737,9 +732,15 @@
-->
<dependency>
- <id>xml-apis</id>
- <version>1.0.b2</version>
- <url>http://xml.apache.org/xerces2-j/</url>
+ <id>jaxen</id>
+ <version>1.0-FCS</version>
+ <properties>
+ <endorsed>true</endorsed>
+ </properties>
+ </dependency>
+ <dependency>
+ <id>saxpath</id>
+ <version>1.0-FCS</version>
<properties>
<endorsed>true</endorsed>
</properties>
diff --git a/src/bin/forehead.conf b/src/bin/forehead.conf
index 83b3ec9..b7ad4b8 100644
--- a/src/bin/forehead.conf
+++ b/src/bin/forehead.conf
@@ -24,7 +24,8 @@
${tools.jar}
${maven.home}/lib/commons-grant-1.0-beta-4.jar
${maven.home}/lib/ant-1.5.3-1.jar
- ${maven.home}/lib/endorsed/xml-apis-1.0.b2.jar
+ ${maven.home}/lib/endorsed/jaxen-1.0-FCS.jar
+ ${maven.home}/lib/endorsed/saxpath-1.0-FCS.jar
${maven.home}/lib/ant-optional-1.5.3-1.jar
${maven.home}/lib/endorsed/xerces-2.4.0.jar
${maven.home}/lib/commons-logging-1.0.3.jar
diff --git a/src/test/java/org/apache/maven/project/ProjectInheritanceTest.java b/src/test/java/org/apache/maven/project/ProjectInheritanceTest.java
index f7debe9..0b05b4e 100644
--- a/src/test/java/org/apache/maven/project/ProjectInheritanceTest.java
+++ b/src/test/java/org/apache/maven/project/ProjectInheritanceTest.java
@@ -85,7 +85,7 @@ public class ProjectInheritanceTest
assertEquals( "dom4j:dom4j",
( (Dependency) p.getDependencies().get( 1 ) ).getId() );
- assertEquals( "1.4-dev-8",
+ assertEquals( "1.6.1",
( (Dependency) p.getDependencies().get( 1 ) ).getVersion() );
baseDir = new File(p.getContext().findVariable("basedir").toString()).getCanonicalPath();

View File

@ -1,6 +1,8 @@
{stdenv, fetchsvn, jdk6, mavenDep, ant_1_7, commons-lang, commons-logging_1_0_3, commons-httpclient_2, {stdenv, fetchsvn, fetchgit, jdk6, ant_1_7, mavenDep, commons-lang, commons-logging_1_0_3, commons-httpclient_2, dom4j, ant_1_5_3,
dom4j, ant_1_5_3, ant-optional_1_5_3, commons-betwixt, commons-digester_1_4_1, commons-jelly, commons-jelly-tags-ant, ant-optional_1_5_3, commons-betwixt, commons-digester_1_4_1, commons-jelly, commons-jelly-tags-ant, commons-jelly-tags-define,
commons-jelly-tags-define, commons-jelly-tags-util, commons-jelly-tags-xml}: stdenv.mkDerivation rec { commons-jelly-tags-util, commons-jelly-tags-xml, commons-jexl, werkz, commons-beanutils_1_6_1, commons-cli_beta_2, commons-collections_2_1,
commons-grant, commons-io, forehead, log4j_1_2_8, which, jaxen, saxpath, xerces_2_4_0, plexus, commons-jelly-tags-maven,
commons-jelly-tags-interaction, jdom, junit_3_8_1, commons-jelly-tags-velocity, velocity_1_4}: stdenv.mkDerivation rec {
pname = "maven"; pname = "maven";
version = "1.0.2"; version = "1.0.2";
@ -10,14 +12,18 @@ commons-jelly-tags-define, commons-jelly-tags-util, commons-jelly-tags-xml}: std
hash = "sha256-fueknKeqmPn0ouJrEU6PNA97JvJMuB4P013c5eyjUK8="; hash = "sha256-fueknKeqmPn0ouJrEU6PNA97JvJMuB4P013c5eyjUK8=";
}; };
#patches = [./maven_2.patch]; src2 = fetchgit {
url = "https://git.befatorinc.de/Bommels05/maven-plugins.git";
rev = "a7e46d68144194fcb2e7eea6e9f909c2316f22f2";
hash = "sha256-f4t2d7+Hh0TSsCRh0FVtHsvQ9xAMUHrTZBYIexdRv+Y=";
};
settings = ./settings.xml; patches = [./maven.patch];
nativeBuildInputs = [jdk6 ant_1_7 nativeBuildInputs = [jdk6 ant_1_7
(mavenDep commons-lang {}) (mavenDep commons-lang {})
(mavenDep commons-httpclient_2 {})
(mavenDep commons-logging_1_0_3 {}) (mavenDep commons-logging_1_0_3 {})
(mavenDep commons-httpclient_2 {})
(mavenDep dom4j {}) (mavenDep dom4j {})
(mavenDep ant_1_5_3 {}) (mavenDep ant_1_5_3 {})
(mavenDep ant-optional_1_5_3 {}) (mavenDep ant-optional_1_5_3 {})
@ -27,17 +33,65 @@ commons-jelly-tags-define, commons-jelly-tags-util, commons-jelly-tags-xml}: std
(mavenDep commons-jelly-tags-ant {}) (mavenDep commons-jelly-tags-ant {})
(mavenDep commons-jelly-tags-define {}) (mavenDep commons-jelly-tags-define {})
(mavenDep commons-jelly-tags-util {}) (mavenDep commons-jelly-tags-util {})
(mavenDep commons-jelly-tags-xml {})]; (mavenDep commons-jelly-tags-xml {})
(mavenDep commons-jexl {})
(mavenDep werkz {})
(mavenDep commons-beanutils_1_6_1 {})
(mavenDep commons-cli_beta_2 {})
(mavenDep commons-collections_2_1 {})
(mavenDep commons-grant {})
(mavenDep commons-io {})
(mavenDep forehead {})
(mavenDep log4j_1_2_8 {})
(mavenDep which {})
(mavenDep jaxen {})
(mavenDep saxpath {})
(mavenDep xerces_2_4_0 {})
(mavenDep plexus {})
(mavenDep commons-jelly-tags-maven {})
(mavenDep commons-jelly-tags-interaction {})
(mavenDep jdom {})
(mavenDep junit_3_8_1 {})
(mavenDep commons-jelly-tags-velocity {})
(mavenDep velocity_1_4 {})];
env = { env = {
JAVA_HOME="${jdk6}"; JAVA_HOME="${jdk6}";
MAVEN_HOME="/build/mvn"; MAVEN_HOME="/build/mvn";
#MAVEN_OPTS="-Dmaven.online=false";
}; };
configurePhase = '' configurePhase = ''
#mkdir -p /build/.maven/repository/maven/jars ln -s /build/.maven/repository/commons-jelly/jars/commons-jelly-tags-xml-20040613.030723.jar /build/.maven/repository/commons-jelly/jars/commons-jelly-tags-xml-1.0.jar
ln -s /build/.maven/repository/dom4j/jars/dom4j-1.6.1.jar /build/.maven/repository/dom4j/jars/dom4j-1.4-dev-8.jar ln -s /build/.maven/repository/jaxen/jars/jaxen-1.0-FCS.jar /build/.maven/repository/jaxen/jars/jaxen-1.0-FCS-full.jar
mkdir /build/maven-plugins
cp -r ${src2}/plugin-parent /build/maven-plugins/plugin-parent
cp -r ${src2}/plugin /build/maven-plugins/plugin
cp -r ${src2}/clean /build/maven-plugins/clean
cp -r ${src2}/jar /build/maven-plugins/jar
cp -r ${src2}/test /build/maven-plugins/test
cp -r ${src2}/java /build/maven-plugins/java
cp -r ${src2}/license /build/maven-plugins/license
cp -r ${src2}/ant /build/maven-plugins/ant
chmod +w /build/maven-plugins/*
sed -i '/<dependency>/{
N;/ <groupId>xml-apis<\/groupId>/{
N;/ <artifactId>xml-apis<\/artifactId>/{
N;/ <version>1.0.b2<\/version>/{
N;/ <url>http:\/\/xml.apache.org\/xerces2-j\/<\/url>/{
N;/<\/dependency>/d
}}}}}' /build/maven-plugins/plugin/project.xml
sed -i '/<dependency>/{
N;/ <groupId>xml-apis<\/groupId>/{
N;/ <artifactId>xml-apis<\/artifactId>/{
N;/ <version>1.0.b2<\/version>/{
N;/ <url>http:\/\/xml.apache.org\/xerces2-j\/<\/url>/{
N;/ <properties>/{
N;/ <classloader>root<\/classloader>/{
N;/ <\/properties>/{
N;/<\/dependency>/d
}}}}}}}}' /build/maven-plugins/test/project.xml
''; '';
buildPhase = '' buildPhase = ''
@ -46,6 +100,6 @@ commons-jelly-tags-define, commons-jelly-tags-util, commons-jelly-tags-xml}: std
installPhase = '' installPhase = ''
mkdir $out mkdir $out
cp -r ./dist/* $out/ cp -r /build/mvn/* $out/
''; '';
} }

View File

@ -154,15 +154,33 @@ bommels = pkgs.lib.makeScope pkgs.newScope (self: rec {
junit_4 = self.callPackage ./java/junit_4.nix { inherit ant_1_6_5 jdk6; }; junit_4 = self.callPackage ./java/junit_4.nix { inherit ant_1_6_5 jdk6; };
ant_1_7 = self.callPackage ./ant/ant_1_7.nix { inherit jdk6 junit_4; }; ant_1_7 = self.callPackage ./ant/ant_1_7.nix { inherit jdk6 junit_4; };
#Kein Source
werkz = self.callPackage ./java/download/werkz.nix { };
forehead = self.callPackage ./java/download/forehead.nix { };
plexus = self.callPackage ./java/download/plexus.nix { };
ivyDepHook = self.callPackage ./ant/ivyDepHook.nix { };
ivyDep = dep: args: (import ./ant/ivyDep.nix { inherit ivyDepHook; stdenv = pkgs.stdenv; }) dep args;
mavenDepHook = self.callPackage ./maven/mavenDepHook.nix { };
mavenDep = dep: args: (import ./maven/mavenDep.nix { inherit mavenDepHook; stdenv = pkgs.stdenv; }) dep args;
junit_3_8_1 = self.callPackage ./java/junit_3_8_1.nix { inherit jdk6 ant_1_7; }; junit_3_8_1 = self.callPackage ./java/junit_3_8_1.nix { inherit jdk6 ant_1_7; };
commons-lang = self.callPackage ./java/commons-lang.nix { inherit jdk6 ant_1_7; }; commons-lang = self.callPackage ./java/commons-lang.nix { inherit jdk6 ant_1_7; };
commons-lang_1 = self.callPackage ./java/commons-lang_1.nix { inherit jdk6 ant_1_7; };
commons-lang_1_1 = self.callPackage ./java/commons-lang_1_1.nix { inherit jdk6 ant_1_7; };
commons-logging_1_0 = self.callPackage ./java/commons-logging_1_0.nix { inherit jdk6 ant_1_7; }; commons-logging_1_0 = self.callPackage ./java/commons-logging_1_0.nix { inherit jdk6 ant_1_7; };
commons-collections_2_0 = self.callPackage ./java/commons-collections_2_0.nix { inherit jdk6 ant_1_7; }; commons-collections_2_0 = self.callPackage ./java/commons-collections_2_0.nix { inherit jdk6 ant_1_7; };
commons-collections_2_1 = self.callPackage ./java/commons-collections_2_1.nix { inherit jdk6 ant_1_7; }; commons-collections_2_1 = self.callPackage ./java/commons-collections_2_1.nix { inherit jdk6 ant_1_7; };
oro = self.callPackage ./java/oro.nix { inherit jdk6 ant_1_7; };
commons-net = self.callPackage ./java/commons-net.nix { inherit jdk6 ant_1_7 oro; };
saxpath = self.callPackage ./java/saxpath.nix { inherit jdk6 ant_1_7; };
dom4j = self.callPackage ./java/dom4j.nix { inherit jdk6 ant_1_7; };
jdom = self.callPackage ./java/jdom.nix { inherit jdk6 ant_1_7; };
jaxen = self.callPackage ./java/jaxen.nix { inherit jdk6 ant_1_7 saxpath dom4j jdom; };
#maven_2 = self.callPackage ./maven/maven_2.nix { inherit jdk6; }; #maven_2 = self.callPackage ./maven/maven_2.nix { inherit jdk6; };
dom4j = self.callPackage ./java/dom4j.nix { inherit jdk6 ant_1_7; };
commons-logging_1_0_3 = self.callPackage ./java/commons-logging_1_0_3.nix { inherit jdk6 ant_1_7; }; commons-logging_1_0_3 = self.callPackage ./java/commons-logging_1_0_3.nix { inherit jdk6 ant_1_7; };
commons-httpclient_2 = self.callPackage ./java/commons-httpclient_2.nix { inherit jdk6 ant_1_7 commons-logging_1_0_3; }; commons-httpclient_2 = self.callPackage ./java/commons-httpclient_2.nix { inherit jdk6 ant_1_7 commons-logging_1_0_3; };
ant_1_5_3 = self.callPackage ./ant/ant_1_5_3.nix { inherit jdk6 ant_1_7; }; ant_1_5_3 = self.callPackage ./ant/ant_1_5_3.nix { inherit jdk6 ant_1_7; };
@ -184,14 +202,15 @@ bommels = pkgs.lib.makeScope pkgs.newScope (self: rec {
commons-collections_2_1 commons-beanutils_1_6; }; commons-collections_2_1 commons-beanutils_1_6; };
junit_3_7 = self.callPackage ./java/junit_3_7.nix { inherit jdk6 ant_1_7; }; junit_3_7 = self.callPackage ./java/junit_3_7.nix { inherit jdk6 ant_1_7; };
commons-cli-bootstrap = self.callPackage ./java/commons-cli-bootstrap.nix { inherit jdk6 ant_1_7 commons-lang; }; commons-cli-bootstrap = self.callPackage ./java/commons-cli-bootstrap.nix { inherit jdk6 ant_1_7 commons-lang_1; };
commons-jexl = self.callPackage ./java/commons-jexl.nix { inherit jdk6 ant_1_7 commons-logging_1_0 junit_3_8_1; }; commons-jexl = self.callPackage ./java/commons-jexl.nix { inherit jdk6 ant_1_7 commons-logging_1_0 junit_3_8_1; };
commons-discovery = self.callPackage ./java/commons-discovery.nix { inherit jdk6 ant_1_7 commons-logging_1_0_3; }; commons-discovery = self.callPackage ./java/commons-discovery.nix { inherit jdk6 ant_1_7 commons-logging_1_0_3; };
saxpath = self.callPackage ./java/saxpath.nix { inherit jdk6 ant_1_7; }; commons-grant = self.callPackage ./java/commons-grant.nix { inherit jdk6 ant_1_7; };
jaxen = self.callPackage ./java/jaxen.nix { inherit jdk6 ant_1_7 saxpath dom4j; }; velocity_1_3 = self.callPackage ./java/velocity_1_3.nix { inherit jdk6 ant_1_7; };
velocity_1_4 = self.callPackage ./java/velocity_1_4.nix { inherit jdk6 ant_1_7; };
commons-jelly = self.callPackage ./java/jelly/commons-jelly.nix { inherit jdk6 ant_1_7 commons-logging_1_0_3 commons-cli-bootstrap commons-jelly = self.callPackage ./java/jelly/commons-jelly.nix { inherit jdk6 ant_1_7 commons-logging_1_0_3 commons-cli-bootstrap
dom4j commons-collections_2_1 commons-beanutils_1_6 commons-jexl commons-discovery jaxen saxpath junit_3_7; }; dom4j commons-collections_2_1 commons-beanutils_1_6 commons-jexl commons-discovery jaxen saxpath junit_3_7; };
commons-grant = self.callPackage ./java/commons-grant.nix { inherit jdk6 ant_1_7; };
commons-jelly-tags-junit = self.callPackage ./java/jelly/commons-jelly-tags-junit.nix { inherit jdk6 ant_1_7 commons-jelly commons-jelly-tags-junit = self.callPackage ./java/jelly/commons-jelly-tags-junit.nix { inherit jdk6 ant_1_7 commons-jelly
commons-logging_1_0_3 junit_3_8_1 jaxen saxpath dom4j commons-collections_2_1 commons-beanutils_1_6 commons-jexl ; }; commons-logging_1_0_3 junit_3_8_1 jaxen saxpath dom4j commons-collections_2_1 commons-beanutils_1_6 commons-jexl ; };
commons-jelly-tags-util = self.callPackage ./java/jelly/commons-jelly-tags-util.nix { inherit jdk6 ant_1_7 commons-jelly commons-jelly-tags-util = self.callPackage ./java/jelly/commons-jelly-tags-util.nix { inherit jdk6 ant_1_7 commons-jelly
@ -209,37 +228,48 @@ bommels = pkgs.lib.makeScope pkgs.newScope (self: rec {
commons-jelly-tags-define = self.callPackage ./java/jelly/commons-jelly-tags-define.nix { inherit jdk6 ant_1_7 commons-jelly commons-jelly-tags-define = self.callPackage ./java/jelly/commons-jelly-tags-define.nix { inherit jdk6 ant_1_7 commons-jelly
commons-logging_1_0_3 commons-beanutils_1_6 junit_3_8_1 dom4j commons-jelly-tags-junit commons-collections_2_1 commons-jexl commons-logging_1_0_3 commons-beanutils_1_6 junit_3_8_1 dom4j commons-jelly-tags-junit commons-collections_2_1 commons-jexl
commons-jelly-tags-log commons-jelly-tags-xml jaxen saxpath commons-jelly-tags-dynabean; }; commons-jelly-tags-log commons-jelly-tags-xml jaxen saxpath commons-jelly-tags-dynabean; };
commons-jelly-tags-interaction = self.callPackage ./java/jelly/commons-jelly-tags-interaction.nix { inherit jdk6 ant_1_7 commons-jelly
junit_3_8_1; };
commons-jelly-tags-velocity = self.callPackage ./java/jelly/commons-jelly-tags-velocity.nix { inherit jdk6 ant_1_7 commons-jelly
velocity_1_3 junit_3_8_1 commons-collections_2_1; };
maven_1 = self.callPackage ./maven/maven_1_0_2.nix { inherit jdk6 ant_1_7 commons-lang commons-logging_1_0_3 commons-beanutils_1_6_1 = self.callPackage ./java/commons-beanutils_1_6_1.nix { inherit jdk6 ant_1_7 commons-logging_1_0
commons-httpclient_2 dom4j ant_1_5_3 ant-optional_1_5_3 commons-betwixt commons-digester_1_4_1 commons-jelly commons-jelly-tags-ant commons-collections_2_0; };
commons-jelly-tags-define commons-jelly-tags-util commons-jelly-tags-xml; }; commons-cli_beta_2 = self.callPackage ./java/commons-cli_beta_2.nix { inherit jdk6 ant_1_7 commons-lang_1; };
commons-io = self.callPackage ./java/commons-io.nix { inherit jdk6 ant_1_7 commons-lang_1_1; };
log4j_1_2_8 = self.callPackage ./java/log4j_1_2_8.nix { inherit jdk6 ant_1_7; };
which = self.callPackage ./java/which.nix { inherit jdk6 ant_1_7; };
xerces_2_4_0 = self.callPackage ./java/xerces_2_4_0.nix { inherit jdk6 ant_1_7; };
fake-maven = self.callPackage ./maven/fake.nix { inherit jdk6 ant_1_7 commons-grant commons-jelly; };
commons-jelly-tags-maven = self.callPackage ./java/jelly/commons-jelly-tags-maven.nix { inherit jdk6 ant_1_7 commons-jelly
commons-logging_1_0_3 werkz fake-maven commons-jelly-tags-ant commons-grant; };
maven_1 = self.callPackage ./maven/maven_1_0_2.nix { inherit jdk6 ant_1_7 commons-lang commons-logging_1_0_3 commons-httpclient_2 dom4j
ant_1_5_3 ant-optional_1_5_3 commons-betwixt commons-digester_1_4_1 commons-jelly commons-jelly-tags-ant commons-jelly-tags-define
commons-jelly-tags-util commons-jelly-tags-xml commons-jexl werkz commons-beanutils_1_6_1 commons-cli_beta_2 commons-collections_2_1
commons-grant commons-io forehead log4j_1_2_8 which jaxen saxpath xerces_2_4_0 plexus commons-jelly-tags-maven
commons-jelly-tags-interaction jdom junit_3_8_1 commons-jelly-tags-velocity velocity_1_4; };
maven_2 = self.callPackage ./maven/maven-bootstrap.nix { inherit jdk6 junit_3_8_1 maven_1; }; maven_2 = self.callPackage ./maven/maven-bootstrap.nix { inherit jdk6 junit_3_8_1 maven_1; };
maven = self.callPackage ./maven/maven.nix { inherit jdk6 maven_2; }; maven = self.callPackage ./maven/maven.nix { inherit jdk6 maven_2; };
ivyDepHook = self.callPackage ./ant/ivyDepHook.nix { };
ivyDep = dep: args: (import ./ant/ivyDep.nix { inherit ivyDepHook; stdenv = pkgs.stdenv; }) dep args;
mavenDepHook = self.callPackage ./maven/mavenDepHook.nix { };
mavenDep = dep: args: (import ./maven/mavenDep.nix { inherit mavenDepHook; stdenv = pkgs.stdenv; }) dep args;
ant_1_6 = self.callPackage ./ant/ant_1_6.nix { inherit jdk6 ant_1_7; }; ant_1_6 = self.callPackage ./ant/ant_1_6.nix { inherit jdk6 ant_1_7; };
commons-cli = self.callPackage ./java/commons-cli.nix { inherit jdk6 ant_1_7 maven commons-lang; }; commons-cli = self.callPackage ./java/commons-cli.nix { inherit jdk6 ant_1_7 maven commons-lang_1; };
commons-logging_1_1 = self.callPackage ./java/commons-logging_1_1.nix { inherit jdk6 ant_1_7 junit_3_8_1; }; commons-logging_1_1 = self.callPackage ./java/commons-logging_1_1.nix { inherit jdk6 ant_1_7 junit_3_8_1; };
commons-codec = self.callPackage ./java/commons-codec.nix { inherit jdk6 ant_1_7; }; commons-codec = self.callPackage ./java/commons-codec.nix { inherit jdk6 ant_1_7; };
commons-httpclient_3 = self.callPackage ./java/commons-httpclient_3.nix { inherit jdk6 ant_1_7 commons-logging_1_1 commons-codec; }; commons-httpclient_3 = self.callPackage ./java/commons-httpclient_3.nix { inherit jdk6 ant_1_7 commons-logging_1_1 commons-codec; };
oro = self.callPackage ./java/oro.nix { inherit jdk6 ant_1_7; };
commons-logging_1_0_4 = self.callPackage ./java/commons-logging_1_0_4.nix { inherit jdk6 ant_1_7; }; commons-logging_1_0_4 = self.callPackage ./java/commons-logging_1_0_4.nix { inherit jdk6 ant_1_7; };
commons-httpclient_2_0_2 = self.callPackage ./java/commons-httpclient_2_0_2.nix { inherit jdk6 ant_1_7 commons-logging_1_0_4; }; commons-httpclient_2_0_2 = self.callPackage ./java/commons-httpclient_2_0_2.nix { inherit jdk6 ant_1_7 commons-logging_1_0_4; };
commons-collections_3_1 = self.callPackage ./java/commons-collections_3_1.nix { inherit jdk6 ant_1_7; }; commons-collections_3_1 = self.callPackage ./java/commons-collections_3_1.nix { inherit jdk6 ant_1_7; };
commons-net = self.callPackage ./java/commons-net.nix { inherit jdk6 ant_1_7 oro; };
jsch_0_1_23 = self.callPackage ./java/jsch_0_1_23.nix { inherit jdk6 ant_1_7; }; jsch_0_1_23 = self.callPackage ./java/jsch_0_1_23.nix { inherit jdk6 ant_1_7; };
commons-vfs = self.callPackage ./java/commons-vfs.nix { inherit jdk6 ant_1_7 commons-logging_1_0_4 commons-vfs = self.callPackage ./java/commons-vfs.nix { inherit jdk6 ant_1_7 commons-logging_1_0_4
commons-httpclient_2_0_2 commons-collections_3_1 commons-net jsch_0_1_23; }; commons-httpclient_2_0_2 commons-collections_3_1 commons-net jsch_0_1_23; };
jsch_0_1_25 = self.callPackage ./java/jsch_0_1_25.nix { inherit jdk6 ant_1_7; }; jsch_0_1_25 = self.callPackage ./java/jsch_0_1_25.nix { inherit jdk6 ant_1_7; };
junit_3_8_2 = self.callPackage ./java/junit_3_8_2.nix { inherit jdk6 ant_1_7; }; junit_3_8_2 = self.callPackage ./java/junit_3_8_2.nix { inherit jdk6 ant_1_7; };
xerces = self.callPackage ./java/xerces.nix { inherit jdk6 ant_1_7; }; xerces_2_6_2 = self.callPackage ./java/xerces_2_6_2.nix { inherit jdk6 ant_1_7; };
xerces-api = self.callPackage ./java/xerces-api.nix { inherit jdk6 ant_1_7; }; xerces-api = self.callPackage ./java/xerces-api.nix { inherit jdk6 ant_1_7; };
ivy = self.callPackage ./ant/ivy.nix { inherit jdk6 ant_1_7 ant_1_6 commons-cli commons-httpclient_3 oro commons-vfs jsch_0_1_25 ivy = self.callPackage ./ant/ivy.nix { inherit jdk6 ant_1_7 ant_1_6 commons-cli commons-httpclient_3 oro commons-vfs jsch_0_1_25
junit_3_8_2 commons-lang xerces xerces-api; }; junit_3_8_2 commons-lang xerces_2_6_2 xerces-api; };
groovy = self.callPackage ./java/groovy.nix { inherit jdk6 ant_1_7; }; groovy = self.callPackage ./java/groovy.nix { inherit jdk6 ant_1_7; };