diff options
author | 2012-09-30 14:43:41 +0300 | |
---|---|---|
committer | 2012-09-30 14:43:41 +0300 | |
commit | bfca9ce8ac6f7f4ffb5163da7b1d570bd68e1d96 (patch) | |
tree | 595fe008dd4df5072de780588df30dfcb5f0e9ca | |
parent | version bump wrt #279348 (diff) | |
download | dmol-bfca9ce8ac6f7f4ffb5163da7b1d570bd68e1d96.tar.gz dmol-bfca9ce8ac6f7f4ffb5163da7b1d570bd68e1d96.tar.bz2 dmol-bfca9ce8ac6f7f4ffb5163da7b1d570bd68e1d96.zip |
ebuild wrt #436644
-rw-r--r-- | dev-java/owasp-esapi/files/owasp-esapi-2.0.1_maven-build.xml | 590 | ||||
-rw-r--r-- | dev-java/owasp-esapi/files/owasp-esapi-2.0.1_test-mockups.patch | 14 | ||||
-rw-r--r-- | dev-java/owasp-esapi/metadata.xml | 7 | ||||
-rw-r--r-- | dev-java/owasp-esapi/owasp-esapi-2.0.1.ebuild | 65 |
4 files changed, 676 insertions, 0 deletions
diff --git a/dev-java/owasp-esapi/files/owasp-esapi-2.0.1_maven-build.xml b/dev-java/owasp-esapi/files/owasp-esapi-2.0.1_maven-build.xml new file mode 100644 index 0000000..4fd838f --- /dev/null +++ b/dev-java/owasp-esapi/files/owasp-esapi-2.0.1_maven-build.xml @@ -0,0 +1,590 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- ====================================================================== --> +<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> +<!-- ====================================================================== --> + +<!-- ====================================================================== --> +<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> +<!-- ====================================================================== --> +<!-- --> +<!-- Any modifications will be overwritten. --> +<!-- --> +<!-- Generated by Maven Ant Plugin on 9/30/12 9:54 AM --> +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> +<!-- --> +<!-- ====================================================================== --> + +<project name="esapi-from-maven" default="package" basedir="."> + + <!-- ====================================================================== --> + <!-- Build environment properties --> + <!-- ====================================================================== --> + + <property file="${user.home}/.m2/maven.properties"/> + <property file="maven-build.properties"/> + + <property name="maven.build.finalName" value="esapi-2.0GA"/> + <property name="maven.build.dir" value="target"/> + <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> + <property name="maven.build.srcDir.0" value="src/main/java"/> + <property name="maven.build.resourceDir.0" value="src/main/resources"/> + <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> + <property name="maven.build.testDir.0" value="src/test/java"/> + <property name="maven.build.testResourceDir.0" value="src/test/resources"/> + <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> + <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> + + <property name="maven.repo.local" value="${user.home}/.m2/repository"/> + <property name="maven.settings.offline" value="false"/> + <property name="maven.settings.interactiveMode" value="true"/> + + <!-- ====================================================================== --> + <!-- Defining classpaths --> + <!-- ====================================================================== --> + + <path id="build.classpath"> + <pathelement location="${maven.repo.local}/commons-configuration/commons-configuration/1.5/commons-configuration-1.5.jar"/> + <pathelement location="${maven.repo.local}/commons-lang/commons-lang/2.3/commons-lang-2.3.jar"/> + <pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar"/> + <pathelement location="${maven.repo.local}/logkit/logkit/1.0.1/logkit-1.0.1.jar"/> + <pathelement location="${maven.repo.local}/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar"/> + <pathelement location="${maven.repo.local}/commons-digester/commons-digester/1.8/commons-digester-1.8.jar"/> + <pathelement location="${maven.repo.local}/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"/> + <pathelement location="${maven.repo.local}/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar"/> + <pathelement location="${maven.repo.local}/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/> + <pathelement location="${maven.repo.local}/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar"/> + <pathelement location="${maven.repo.local}/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar"/> + <pathelement location="${maven.repo.local}/commons-collections/commons-collections/3.2/commons-collections-3.2.jar"/> + <pathelement location="${maven.repo.local}/log4j/log4j/1.2.16/log4j-1.2.16.jar"/> + <pathelement location="${maven.repo.local}/xom/xom/1.1/xom-1.1.jar"/> + <pathelement location="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar"/> + <pathelement location="${maven.repo.local}/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/> + <pathelement location="${maven.repo.local}/xalan/xalan/2.7.0/xalan-2.7.0.jar"/> + <pathelement location="${maven.repo.local}/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/> + <pathelement location="${maven.repo.local}/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.jar"/> + <pathelement location="${maven.repo.local}/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"/> + <pathelement location="${maven.repo.local}/jdom/jdom/1.0/jdom-1.0.jar"/> + <pathelement location="${maven.repo.local}/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar"/> + <pathelement location="${maven.repo.local}/org/owasp/antisamy/antisamy/1.4.3/antisamy-1.4.3.jar"/> + <pathelement location="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"/> + <pathelement location="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"/> + <pathelement location="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"/> + <pathelement location="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"/> + <pathelement location="${maven.repo.local}/net/sourceforge/nekohtml/nekohtml/1.9.12/nekohtml-1.9.12.jar"/> + <pathelement location="${maven.repo.local}/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar"/> + <pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.2/commons-codec-1.2.jar"/> + </path> + <path id="build.test.classpath"> + <pathelement location="${maven.repo.local}/commons-configuration/commons-configuration/1.5/commons-configuration-1.5.jar"/> + <pathelement location="${maven.repo.local}/commons-lang/commons-lang/2.3/commons-lang-2.3.jar"/> + <pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar"/> + <pathelement location="${maven.repo.local}/logkit/logkit/1.0.1/logkit-1.0.1.jar"/> + <pathelement location="${maven.repo.local}/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar"/> + <pathelement location="${maven.repo.local}/commons-digester/commons-digester/1.8/commons-digester-1.8.jar"/> + <pathelement location="${maven.repo.local}/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"/> + <pathelement location="${maven.repo.local}/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar"/> + <pathelement location="${maven.repo.local}/junit/junit/4.4/junit-4.4.jar"/> + <pathelement location="${maven.repo.local}/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/> + <pathelement location="${maven.repo.local}/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar"/> + <pathelement location="${maven.repo.local}/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar"/> + <pathelement location="${maven.repo.local}/commons-io/commons-io/1.3/commons-io-1.3.jar"/> + <pathelement location="${maven.repo.local}/commons-collections/commons-collections/3.2/commons-collections-3.2.jar"/> + <pathelement location="${maven.repo.local}/log4j/log4j/1.2.16/log4j-1.2.16.jar"/> + <pathelement location="${maven.repo.local}/xom/xom/1.1/xom-1.1.jar"/> + <pathelement location="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar"/> + <pathelement location="${maven.repo.local}/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/> + <pathelement location="${maven.repo.local}/xalan/xalan/2.7.0/xalan-2.7.0.jar"/> + <pathelement location="${maven.repo.local}/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/> + <pathelement location="${maven.repo.local}/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.jar"/> + <pathelement location="${maven.repo.local}/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"/> + <pathelement location="${maven.repo.local}/jdom/jdom/1.0/jdom-1.0.jar"/> + <pathelement location="${maven.repo.local}/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar"/> + <pathelement location="${maven.repo.local}/org/owasp/antisamy/antisamy/1.4.3/antisamy-1.4.3.jar"/> + <pathelement location="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"/> + <pathelement location="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"/> + <pathelement location="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"/> + <pathelement location="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"/> + <pathelement location="${maven.repo.local}/net/sourceforge/nekohtml/nekohtml/1.9.12/nekohtml-1.9.12.jar"/> + <pathelement location="${maven.repo.local}/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar"/> + <pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.2/commons-codec-1.2.jar"/> + </path> + + <!-- ====================================================================== --> + <!-- Cleaning up target --> + <!-- ====================================================================== --> + + <target name="clean" description="Clean the output directory"> + <delete dir="${maven.build.dir}"/> + </target> + + <!-- ====================================================================== --> + <!-- Compilation target --> + <!-- ====================================================================== --> + + <target name="compile" depends="get-deps" description="Compile the code"> + <mkdir dir="${maven.build.outputDir}"/> + <javac destdir="${maven.build.outputDir}" + nowarn="true" + debug="true" + optimize="false" + deprecation="false" + target="1.5" + verbose="false" + fork="false" + source="1.5"> + <src> + <pathelement location="${maven.build.srcDir.0}"/> + </src> + <classpath refid="build.classpath"/> + </javac> + </target> + + <!-- ====================================================================== --> + <!-- Test-compilation target --> + <!-- ====================================================================== --> + + <target name="compile-tests" + depends="compile" + description="Compile the test code" + unless="maven.test.skip"> + <mkdir dir="${maven.build.testOutputDir}"/> + <javac destdir="${maven.build.testOutputDir}" + nowarn="true" + debug="true" + optimize="false" + deprecation="false" + target="1.5" + verbose="false" + fork="false" + source="1.5"> + <src> + <pathelement location="${maven.build.testDir.0}"/> + </src> + <classpath> + <path refid="build.test.classpath"/> + <pathelement location="${maven.build.outputDir}"/> + </classpath> + </javac> + <copy todir="${maven.build.testOutputDir}"> + <fileset dir="${maven.build.testResourceDir.0}"/> + </copy> + </target> + + <!-- ====================================================================== --> + <!-- Run all tests --> + <!-- ====================================================================== --> + + <target name="test" + depends="compile-tests, junit-missing" + unless="junit.skipped" + description="Run the test cases"> + <mkdir dir="${maven.test.reports}"/> + <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> + <sysproperty key="basedir" value="."/> + <formatter type="xml"/> + <formatter type="plain" usefile="false"/> + <classpath> + <path refid="build.test.classpath"/> + <pathelement location="${maven.build.outputDir}"/> + <pathelement location="${maven.build.testOutputDir}"/> + </classpath> + <batchtest todir="${maven.test.reports}" unless="test"> + <fileset dir="${maven.build.testDir.0}"> + <include name="**/Test*.java"/> + <include name="**/*Test.java"/> + <include name="**/*TestCase.java"/> + <exclude name="**/*Abstract*Test.java"/> + <exclude name="**/WAFTestCase.java"/> + </fileset> + </batchtest> + <batchtest todir="${maven.test.reports}" if="test"> + <fileset dir="${maven.build.testDir.0}"> + <include name="**/${test}.java"/> + <exclude name="**/*Abstract*Test.java"/> + <exclude name="**/WAFTestCase.java"/> + </fileset> + </batchtest> + </junit> + </target> + + <target name="test-junit-present"> + <available classname="junit.framework.Test" property="junit.present"/> + </target> + + <target name="test-junit-status" + depends="test-junit-present"> + <condition property="junit.missing"> + <and> + <isfalse value="${junit.present}"/> + <isfalse value="${maven.test.skip}"/> + </and> + </condition> + <condition property="junit.skipped"> + <or> + <isfalse value="${junit.present}"/> + <istrue value="${maven.test.skip}"/> + </or> + </condition> + </target> + + <target name="junit-missing" + depends="test-junit-status" + if="junit.missing"> + <echo>=================================== WARNING ===================================</echo> + <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> + <echo>===============================================================================</echo> + </target> + + <!-- ====================================================================== --> + <!-- Javadoc target --> + <!-- ====================================================================== --> + + <target name="javadoc" description="Generates the Javadoc of the application"> + <javadoc sourcepath="${maven.build.srcDir.0}" + packagenames="*" + destdir="${maven.reporting.outputDirectory}/apidocs" + access="protected" + old="false" + verbose="false" + version="true" + use="true" + author="true" + splitindex="false" + nodeprecated="false" + nodeprecatedlist="false" + notree="false" + noindex="false" + nohelp="false" + nonavbar="false" + serialwarn="false" + charset="ISO-8859-1" + linksource="false" + breakiterator="false"/> + </target> + + <!-- ====================================================================== --> + <!-- Package target --> + <!-- ====================================================================== --> + + <target name="package" depends="compile,test" description="Package the application"> + <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" + compress="true" + index="false" + basedir="${maven.build.outputDir}" + excludes="**/package.html"> + </jar> + </target> + + <!-- ====================================================================== --> + <!-- A dummy target for the package named after the type it creates --> + <!-- ====================================================================== --> + + <target name="jar" depends="package" description="Builds the jar for the application"/> + + <!-- ====================================================================== --> + <!-- Download dependencies target --> + <!-- ====================================================================== --> + + <target name="test-offline"> + <condition property="maven.mode.offline"> + <equals arg1="${maven.settings.offline}" arg2="true"/> + </condition> + </target> + + <target name="get-deps" + depends="test-offline" + description="Download all dependencies" + unless="maven.mode.offline"> + <mkdir dir="${maven.repo.local}"/> + <mkdir dir="${maven.repo.local}/commons-configuration/commons-configuration/1.5"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-configuration/commons-configuration/1.5/commons-configuration-1.5.jar" + dest="${maven.repo.local}/commons-configuration/commons-configuration/1.5/commons-configuration-1.5.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-configuration/commons-configuration/1.5/commons-configuration-1.5.jar" + dest="${maven.repo.local}/commons-configuration/commons-configuration/1.5/commons-configuration-1.5.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-lang/commons-lang/2.3"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-lang/commons-lang/2.3/commons-lang-2.3.jar" + dest="${maven.repo.local}/commons-lang/commons-lang/2.3/commons-lang-2.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.3/commons-lang-2.3.jar" + dest="${maven.repo.local}/commons-lang/commons-lang/2.3/commons-lang-2.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-logging/commons-logging/1.1"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" + dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" + dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/logkit/logkit/1.0.1"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/logkit/logkit/1.0.1/logkit-1.0.1.jar" + dest="${maven.repo.local}/logkit/logkit/1.0.1/logkit-1.0.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/logkit/logkit/1.0.1/logkit-1.0.1.jar" + dest="${maven.repo.local}/logkit/logkit/1.0.1/logkit-1.0.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/avalon-framework/avalon-framework/4.1.3"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar" + dest="${maven.repo.local}/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar" + dest="${maven.repo.local}/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-digester/commons-digester/1.8"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-digester/commons-digester/1.8/commons-digester-1.8.jar" + dest="${maven.repo.local}/commons-digester/commons-digester/1.8/commons-digester-1.8.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-digester/commons-digester/1.8/commons-digester-1.8.jar" + dest="${maven.repo.local}/commons-digester/commons-digester/1.8/commons-digester-1.8.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-beanutils/commons-beanutils/1.7.0"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar" + dest="${maven.repo.local}/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar" + dest="${maven.repo.local}/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-beanutils/commons-beanutils-core/1.7.0"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar" + dest="${maven.repo.local}/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar" + dest="${maven.repo.local}/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/junit/junit/4.4"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/junit/junit/4.4/junit-4.4.jar" + dest="${maven.repo.local}/junit/junit/4.4/junit-4.4.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/junit/junit/4.4/junit-4.4.jar" + dest="${maven.repo.local}/junit/junit/4.4/junit-4.4.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/javax/servlet/servlet-api/2.4"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar" + dest="${maven.repo.local}/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar" + dest="${maven.repo.local}/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/javax/servlet/jsp-api/2.0"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar" + dest="${maven.repo.local}/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar" + dest="${maven.repo.local}/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-fileupload/commons-fileupload/1.2"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar" + dest="${maven.repo.local}/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar" + dest="${maven.repo.local}/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-io/commons-io/1.3"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-io/commons-io/1.3/commons-io-1.3.jar" + dest="${maven.repo.local}/commons-io/commons-io/1.3/commons-io-1.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-io/commons-io/1.3/commons-io-1.3.jar" + dest="${maven.repo.local}/commons-io/commons-io/1.3/commons-io-1.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-collections/commons-collections/3.2"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-collections/commons-collections/3.2/commons-collections-3.2.jar" + dest="${maven.repo.local}/commons-collections/commons-collections/3.2/commons-collections-3.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-collections/commons-collections/3.2/commons-collections-3.2.jar" + dest="${maven.repo.local}/commons-collections/commons-collections/3.2/commons-collections-3.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/log4j/log4j/1.2.16"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/log4j/log4j/1.2.16/log4j-1.2.16.jar" + dest="${maven.repo.local}/log4j/log4j/1.2.16/log4j-1.2.16.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.jar" + dest="${maven.repo.local}/log4j/log4j/1.2.16/log4j-1.2.16.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/xom/xom/1.1"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/xom/xom/1.1/xom-1.1.jar" + dest="${maven.repo.local}/xom/xom/1.1/xom-1.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/xom/xom/1.1/xom-1.1.jar" + dest="${maven.repo.local}/xom/xom/1.1/xom-1.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" + dest="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" + dest="${maven.repo.local}/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/xerces/xercesImpl/2.6.2"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" + dest="${maven.repo.local}/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" + dest="${maven.repo.local}/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/xalan/xalan/2.7.0"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/xalan/xalan/2.7.0/xalan-2.7.0.jar" + dest="${maven.repo.local}/xalan/xalan/2.7.0/xalan-2.7.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/xalan/xalan/2.7.0/xalan-2.7.0.jar" + dest="${maven.repo.local}/xalan/xalan/2.7.0/xalan-2.7.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/xml-apis/xml-apis/1.0.b2"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar" + dest="${maven.repo.local}/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar" + dest="${maven.repo.local}/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/jaxen/jaxen/1.1-beta-8"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.jar" + dest="${maven.repo.local}/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.jar" + dest="${maven.repo.local}/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/dom4j/dom4j/1.6.1"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" + dest="${maven.repo.local}/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" + dest="${maven.repo.local}/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/jdom/jdom/1.0"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/jdom/jdom/1.0/jdom-1.0.jar" + dest="${maven.repo.local}/jdom/jdom/1.0/jdom-1.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/jdom/jdom/1.0/jdom-1.0.jar" + dest="${maven.repo.local}/jdom/jdom/1.0/jdom-1.0.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/org/beanshell/bsh-core/2.0b4"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar" + dest="${maven.repo.local}/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar" + dest="${maven.repo.local}/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/org/owasp/antisamy/antisamy/1.4.3"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/org/owasp/antisamy/antisamy/1.4.3/antisamy-1.4.3.jar" + dest="${maven.repo.local}/org/owasp/antisamy/antisamy/1.4.3/antisamy-1.4.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/org/owasp/antisamy/antisamy/1.4.3/antisamy-1.4.3.jar" + dest="${maven.repo.local}/org/owasp/antisamy/antisamy/1.4.3/antisamy-1.4.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar" + dest="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar" + dest="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar" + dest="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar" + dest="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar" + dest="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar" + dest="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar" + dest="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar" + dest="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/net/sourceforge/nekohtml/nekohtml/1.9.12"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/nekohtml/nekohtml/1.9.12/nekohtml-1.9.12.jar" + dest="${maven.repo.local}/net/sourceforge/nekohtml/nekohtml/1.9.12/nekohtml-1.9.12.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/net/sourceforge/nekohtml/nekohtml/1.9.12/nekohtml-1.9.12.jar" + dest="${maven.repo.local}/net/sourceforge/nekohtml/nekohtml/1.9.12/nekohtml-1.9.12.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-httpclient/commons-httpclient/3.1"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar" + dest="${maven.repo.local}/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar" + dest="${maven.repo.local}/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-codec/commons-codec/1.2"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/commons-codec/commons-codec/1.2/commons-codec-1.2.jar" + dest="${maven.repo.local}/commons-codec/commons-codec/1.2/commons-codec-1.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.2/commons-codec-1.2.jar" + dest="${maven.repo.local}/commons-codec/commons-codec/1.2/commons-codec-1.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + </target> + +</project> diff --git a/dev-java/owasp-esapi/files/owasp-esapi-2.0.1_test-mockups.patch b/dev-java/owasp-esapi/files/owasp-esapi-2.0.1_test-mockups.patch new file mode 100644 index 0000000..28dc42d --- /dev/null +++ b/dev-java/owasp-esapi/files/owasp-esapi-2.0.1_test-mockups.patch @@ -0,0 +1,14 @@ +diff -Nru /tmp/1/src/test/java/org/owasp/esapi/http/MockServletContext.java src/test/java/org/owasp/esapi/http/MockServletContext.java +--- /tmp/1/src/test/java/org/owasp/esapi/http/MockServletContext.java 2011-07-25 10:18:49.000000000 +0300 ++++ src/test/java/org/owasp/esapi/http/MockServletContext.java 2012-09-30 13:54:13.839485232 +0300 +@@ -82,6 +82,10 @@ + public ServletContext getContext(String uripath) {
+ return null;
+ }
++
++ public String getContextPath(){
++ throw new UnsupportedOperationException();
++ }
+
+ /**
+ * Returns the major version of the Java Servlet API that this
diff --git a/dev-java/owasp-esapi/metadata.xml b/dev-java/owasp-esapi/metadata.xml new file mode 100644 index 0000000..80859ae --- /dev/null +++ b/dev-java/owasp-esapi/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> +</pkgmetadata> diff --git a/dev-java/owasp-esapi/owasp-esapi-2.0.1.ebuild b/dev-java/owasp-esapi/owasp-esapi-2.0.1.ebuild new file mode 100644 index 0000000..28deb4b --- /dev/null +++ b/dev-java/owasp-esapi/owasp-esapi-2.0.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +MY_PN=esapi +MY_PV=2.0GA + +DESCRIPTION="The OWASP Enterprise Security API) is a web application security control library" +HOMEPAGE="https://code.google.com/p/owasp-esapi-java" +SRC_URI="https://owasp-esapi-java.googlecode.com/files/${MY_PN}-${PV}-dist.tar.gz" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="~amd64" +IUSE="" + +CDEPEND=" + dev-java/bsh:0 + dev-java/commons-beanutils:1.7 + dev-java/commons-configuration:0 + dev-java/commons-io:1 + dev-java/commons-collections:0 + dev-java/log4j:0 + dev-java/xom:0 + java-virtuals/servlet-api:3.0" + +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.5 + test? ( + dev-java/ant-junit:0 + dev-java/junit:4 + dev-java/commons-fileupload:0 ) + ${CDEPEND}" + +S="${WORKDIR}" + +java_prepare() { + #generated from http://owasp-esapi-java.googlecode.com/svn/tags/esapi-2.0GA/pom.xml + cp -v "${FILESDIR}"/${P}_maven-build.xml build.xml || die + find "${S}" -name '*.jar' -print -delete || die + epatch "${FILESDIR}"/${P}_test-mockups.patch +} + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_TEST_GENTOO_CLASSPATH="junit-4" +EANT_GENTOO_CLASSPATH="bsh,commons-beanutils:1.7,commons-configuration,commons-io-1,commons-collections,log4j,xom,servlet-api-3.0" +EANT_TEST_GENTOO_CLASSPATH="commons-fileupload,junit-4" + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${MY_PN}-${MY_PV}.jar ${PN}.jar + + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/org +} |