You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by am...@apache.org on 2003/11/24 14:34:11 UTC

cvs commit: xml-security build-ant1.5.xml provider.properties proxy.properties

amattheu    2003/11/24 05:34:11

  Added:       .        build-ant1.5.xml provider.properties
                        proxy.properties
  Log:
  Ant 1.5 functionality.
  
  Revision  Changes    Path
  1.1                  xml-security/build-ant1.5.xml
  
  Index: build-ant1.5.xml
  ===================================================================
  <?xml version="1.0"?>
  <project name="Apache XML Security" default="help" basedir=".">
      <!-- P R O P E R T Y    F I L E S -->
      <property file="build.properties" />
      <property file="provider.properties" />
      <property file="proxy.properties" />
  
  
  
  
      <!-- G L O B A L    P R O P E R T I E S -->
      <!-- directory properties -->
      <property name="dir.src"            value="src" />
      <property name="dir.libs"           value="libs" />
      <property name="dir.tests"          value="src_unitTests" />
      <property name="dir.samples"        value="src_samples" />
      <property name="dir.data"           value="data" />
      <property name="dir.build"          value="build" />
      <property name="dir.build.bin"      value="${dir.build}/classes" />
      <property name="dir.build.libs"     value="${dir.build}/libs" />
      <property name="dir.build.test"     value="${dir.build}/test" />
      <property name="dir.build.docs"     value="${dir.build}/docs" />
      <property name="dir.build.src"      value="${dir.build}/src" />
      <property name="dir.build.dist"     value="${dir.build}/dist" />
  
      <!-- library properties -->
      <property name="lib.logging"        value="${dir.libs}/commons-logging.jar" />
      <property name="lib.logging.api"    value="${dir.libs}/commons-logging-api.jar" />
      <property name="lib.junit"          value="${dir.libs}/junit3.7.jar" />
      <property name="lib.xalan.1"        value="${dir.libs}/xalan.jar" />
      <property name="lib.xalan.2"        value="${dir.libs}/xml-apis.jar" />
      <property name="lib.xerces.1"       value="${dir.libs}/xercesImpl.jar" />
      <property name="lib.xerces.2"       value="${dir.libs}/xmlParserAPIs.jar" />
      <property name="lib.jce"            value="${dir.libs}/${jce.provider.prefix}-${jce.provider.jar}" />
      <property name="lib.style"          value="${dir.libs}/style-apachexml.jar" />
      <property name="lib.stylebook"      value="${dir.libs}/stylebook-1.0-b3_xalan-2.jar" />
  
      <!-- build variable properties -->
  
  
  
  
      <!-- C O N D I T I O N A L    P R O P E R T I E S -->
      <target name="do.build.src" >
          <!-- global properties applies here -->
      </target >
  
  
  
  
      <!-- P A T H S -->
      <path id="id.classpath.xalan" >
          <pathelement path="${lib.xalan.1}" />
          <pathelement path="${lib.xalan.2}" />
      </path >
      <path id="id.classpath.xerces" >
          <pathelement path="${lib.xerces.1}" />
          <pathelement path="${lib.xerces.2}" />
      </path >
      <path id="id.classpath.logging" >
          <pathelement path="${lib.logging}" />
          <pathelement path="${lib.logging.api}" />
      </path >
      <path id="id.classpath.common" >
          <path refid="id.classpath.xalan" />
          <path refid="id.classpath.xerces" />
          <path refid="id.classpath.logging" />
      </path >
      <path id="id.classpath.crypt" >
          <pathelement path="${lib.jce}" />
      </path >
      <path id="id.classpath.sig" >
      </path >
      <path id="id.classpath.test" >
          <pathelement path="${lib.test}" />
      </path >
      <path id="id.classpath" >
          <path refid="id.classpath.common" />
          <path refid="id.classpath.crypt" />
          <path refid="id.classpath.sig" />
          <path refid="id.classpath.test" />
      </path >
  
  
  
  
      <!-- T A R G E T S -->
      <!-- environment targets -->
      <!-- set up -->
      <target name="env.mk.dirs" unless="has.dirs" >
          <mkdir dir="${dir.build}" />
          <mkdir dir="${dir.build.bin}" />
          <mkdir dir="${dir.build.docs}" />
          <mkdir dir="${dir.build.test}" />
          <mkdir dir="${dir.build.libs}" />
          <mkdir dir="${dir.build.dist}" />
          <property name="has.dirs" value="true" />
      </target >
  
      <!-- tear down -->
      <target name="env.rm.dirs" >
          <delete dir="${dir.build}" />
      </target >
  
      <!-- check targets -->
      <target name="do.check.libs.jce" >
          <condition property="has.jce.provider" >
              <available file="${lib.jce}" />
          </condition >
      </target >
      <target name="do.check.libs"
              depends="do.check.libs.jce"
              unless="has.jce.provider" >
          <setproxy proxyhost="${proxy.host}"
                    proxyport="${proxy.port}" />
          <get src="${jce.provider.source}/${jce.provider.jar}"
               dest="${lib.jce}"
               verbose="true" />
          <checksum file="${lib.jce}"
                    algorithm="${checksum.algorithm}"
                    property="${checksum.value}"
                    verifyproperty="jce.checksum.ok" />
      </target >
  
      <!-- build targets -->
      <!-- source -->
      <target name="build.src"
              depends="do.check.libs,do.build.src,env.mk.dirs"
              if="has.jce.provider" >
          <javac srcdir="${dir.src}"
                 destdir="${dir.build.bin}" >
              <classpath refid="id.classpath" />
              <include name="org/apache/xml/security/**/*.java" />
          </javac >
          <copy todir="${dir.build.bin}" >
              <fileset dir="${dir.src}"
                       includes="org/apache/xml/security/resource/*,
                                 org/apache/xml/security/resource/schema/*"
                       excludes="org/apache/xml/security/resource/CVS,
                                 org/apache/xml/security/resource/schema/CVS" />
          </copy >
      </target >
  
      <!-- documentation -->
      <target name="build.docs" />
  
      <!-- jars -->
      <target name="build.jar"
              depends="env.mk.dirs" >
          <jar destfile="${dir.build.dist}/xml-security.jar"
               basedir="${dir.build.bin}" >
          </jar >
      </target >
  
      <!-- archive targets -->
      <target name="build.arch"
              depends="env.mk.dirs" >
      </target >
  
      <!-- aliases -->
      <target name="build.all"        depends="env.mk.dirs,build.src,build.docs,build.jar,build.arch" />
  
      <target name="compile"          depends="build.src" />
      <target name="docs"             depends="build.docs" />
      <target name="jar"              depends="build.jar" />
      <target name="dist"             depends="build.dist" />
      <target name="clean"            depends="env.rm.dirs"/>
      <target name="test" />
  
      <!-- distribution targets -->
      <target name="build.dist"       depends="build.all" />
  
      <!-- maintenance targets -->
  
      <!-- help targets -->
      <target name="help" >
          <echo message="synopsis: ant [target]" />
          <echo message="targets:" />
          <echo message="compile  - builds xml-security source" />
          <echo message="docs     - creates java documentation" />
          <echo message="jar      - creates a jar file, containing the built source" />
          <echo message="dist     - creates a distribution" />
          <echo message="           (see ant help.dist for more information)" />
          <echo message="clean    - resets the build environment" />
          <echo message="test     - performs a series of tests" />
          <echo message="           (see ant help.test for more information)" />
          <echo message="help     - displays this help message (default)" />
          <echo message="config   - optional configuration information" />
          <echo message="           (see ant help.config for more information)" />
      </target >
      <target name="help.dist" >
          <echo message="dist:" />
          <echo message="this target will:" />
          <echo message="1.  build the source files," />
          <echo message="2.  create the appropriate java documentation," />
          <echo message="3.  create distribution jars," />
          <echo message="4.  copy the license, copies source and" />
          <echo message="5.  creates distribution archives" />
      </target >
      <target name="help.test" >
          <echo message="To be done..." />
      </target >
      <target name="help.config" >
          <echo message="1.  to configure the provider setings," /> 
          <echo message="    see the contents of provider.properties" />
          <echo message="2.  to configure the proxy setings," /> 
          <echo message="    see the contents of proxy.properties" />
      </target >
  </project>
  
  
  
  1.1                  xml-security/provider.properties
  
  Index: provider.properties
  ===================================================================
  # The XML Security Project uses a third party cryptographic provider
  # because the JCE does not supply all the relevant algorithms.
  #
  # Use this file to specify the provider information. The XML Security
  # implementation uses The Legion of the Bouncy Castle's provider.
  
  # Specify your preferred provider, together with the download location
  # of the provider file in this section.
  jce.provider.source     = http://www.bouncycastle.org/download
  jce.provider.prefix     = bc
  jce.provider.jar        = jce-jdk13-119.jar
  
  # Specify a checksum algoritm and a checksum value for JCE provider
  # in this section. The checksum is used to ensure that no data
  # corruption occured during the download of the provider.
  checksum.algorithm      = md5
  checksum.value          = 521d0d68bd1bad5ad86262b96f05d8f1
  
  
  # Other usefull values
  #
  # MD5
  # 8a90f10826c0b8a4460231dcef0e0e45          jce-jdk13-114.jar
  # 38c40aa5c386e3ba5fac70916bcc5b0d          jce-jdk13-115.jar
  # 85c64cd754719a4bc8da7e9aa0e113fd          jce-jdk13-116.jar
  # 6f201e74b8d455c1960d2aadc6eba7dd          jce-jdk13-117.jar
  # e4a56ae49cf6d523d94c2682c5475144          jce-jdk13-118.jar
  # 521d0d68bd1bad5ad86262b96f05d8f1          jce-jdk13-119.jar
  # 6b7c9352d1f6014a8e0da51d57e4964b          bcprov-jdk14-115.jar
  # ad8526ea2d2c83b86d14b9b3a68df6d0          bcprov-jdk14-116.jar
  # 077b6d7bd82640a61eda1bcbb55994d1          bcprov-jdk14-117.jar
  # 150fb1132003b824c26939ad2cb247af          bcprov-jdk14-118.jar
  # 86add778fbbd2ef13a2e52c7587f5234          bcprov-jdk14-119.jar
  #
  # SHA1
  # f3cf2677ad8fa7a038ab3a62e05afef9615ea579  jce-jdk13-114.jar
  # 15f5af7fc73e4ff5c059f83f47509b9720e129e7  jce-jdk13-115.jar
  # c1f0e975e8c8e0a0105787b249a50615b485d109  jce-jdk13-116.jar
  # a6c4b425db845f4d00c84d8ffed437fe0cca0548  jce-jdk13-117.jar
  # 23f992d3d746fe6756ec6121089bd535e65c4e5e  jce-jdk13-118.jar
  # e8d38f066fe51d7f86cb48d9bb124fe49584a2c9  jce-jdk13-119.jar
  # 31c03c553044a1c0fe884c7e9a5a09de58850a4f  bcprov-jdk14-115.jar
  # d635405c78101cedbc710da12ed0cf57c0e0f895  bcprov-jdk14-116.jar
  # d56bb87abb942b481ffdcb03dfde5c4a8c5e1365  bcprov-jdk14-117.jar
  # 3be88c4b4b60371731950973e1868325a1cbf27d  bcprov-jdk14-118.jar
  # ba539139beedba1c4b675a4623a242e38c73b540  bcprov-jdk14-119.jar
  
  
  
  1.1                  xml-security/proxy.properties
  
  Index: proxy.properties
  ===================================================================
  # Set these values if you are behind a firewall
  proxy.host = your.proxy.goes.here
  proxy.port = 8080