Move to Apache Ivy for lib management

git-svn-id: https://brutex.net/svn/xservices/trunk@137 e7e49efb-446e-492e-b9ec-fcafc1997a86
xservices-jre6
Brian Rosenberger 2013-02-12 11:54:04 +00:00
parent 47cf1af29b
commit d054921dad
3 changed files with 84 additions and 19 deletions

View File

@ -1,49 +1,50 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project default="create-doc" basedir="."> <project default="create-doc" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="current-loc" location="." /> <property name="current-loc" location="." />
<property name="workspace" location=".." /> <property name="workspace" location=".." />
<property name="htmldir" value="${current-loc}/doc/html" /> <property name="htmldir" value="${current-loc}/doc/html" />
<property name="docbookdir" value="C:\JAVA-DEV\docbook-xsl-ns-1.76.1\html\" /> <property name="docbookdir" value="C:\JAVA-DEV\docbook-xsl-ns-1.76.1\html\" />
<property name="docbooksource" value="${current-loc}/doc"/> <property name="docbooksource" value="${current-loc}/doc" />
<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" /> <property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
<!-- XSLT Chunking Properties --> <!-- XSLT Chunking Properties -->
<property name="base.dir" value="${htmldir}"/> <property name="base.dir" value="${htmldir}" />
<target name="merge"> <target name="merge">
<xsl.xinclude in="${docbooksource}/BruteXServices_User_Guide.xml" <xsl.xinclude in="${docbooksource}/BruteXServices_User_Guide.xml" out="${docbooksource}/BruteXServices_User_Guide.dbk" />
out="${docbooksource}/BruteXServices_User_Guide.dbk"
/>
</target> </target>
<target name="clean-doc"> <target name="clean-doc">
<delete dir="${htmldir}" /> <delete dir="${htmldir}" />
<mkdir dir="${htmldir}"/> <mkdir dir="${htmldir}" />
</target> </target>
<target name="create-doc" depends="clean-doc, merge"> <target name="create-doc" depends="clean-doc, merge">
<xslt force="true" style="${docbookdir}/../toHTML.xsl" <xslt force="true" style="${docbookdir}/../toHTML.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/index.html">
in="${docbooksource}/BruteXServices_User_Guide.dbk"
out="${htmldir}/index.html">
<factory name="${xalan}" /> <factory name="${xalan}" />
<param name="base.dir" expression="${htmldir}/"/> <param name="base.dir" expression="${htmldir}/" />
<param name="use.id.as.filename" expression="1" /> <param name="use.id.as.filename" expression="1" />
</xslt> </xslt>
</target> </target>
<target name="create-webdoc" depends="clean-doc, merge"> <target name="create-webdoc" depends="clean-doc, merge">
<xslt force="true" style="${docbookdir}/../fo/docbook.xsl" <xslt force="true" style="${docbookdir}/../fo/docbook.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/xservices.fo">
in="${docbooksource}/BruteXServices_User_Guide.dbk"
out="${htmldir}/xservices.fo">
<factory name="${xalan}" /> <factory name="${xalan}" />
<param name="base.dir" expression="${htmldir}/"/> <param name="base.dir" expression="${htmldir}/" />
<param name="use.id.as.filename" expression="1" /> <param name="use.id.as.filename" expression="1" />
<param name="fop.extensions" expression="0" /> <param name="fop.extensions" expression="0" />
</xslt> </xslt>
</target> </target>
<!-- =================================
target: resolve
================================= -->
<target name="resolve" description="--> retrieve dependencies with ivy">
<ivy:retrieve />
</target>
</project> </project>

43
ivy.xml Normal file
View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info
organisation="Brutex Network"
module="XServices"
status="integration">
</info>
<dependencies>
<dependency org="org.apache.commons" name="commons-lang3" rev="3.1"/>
<dependency org="commons-configuration" name="commons-configuration" rev="1.9"/>
<dependency org="org.apache.ant" name="ant" rev="1.8.4"/>
<dependency org="org.apache.ant" name="ant-nodeps" rev="1.8.1"/>
<dependency org="org.apache.ant" name="ant-jsch" rev="1.8.4"/>
<dependency org="quartz" name="quartz" rev="1.5.2" />
<dependency org="log4j" name="log4j" rev="1.2.17"/>
<dependency org="org.apache.ws.commons.axiom" name="axiom-impl" rev="1.2.14"
transitive="false"/>
</dependencies>
</ivy-module>

21
ivysettings.xml Normal file
View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<ivysettings>
<settings defaultResolver="default-chain"/>
<resolvers>
<chain name="default-chain">
<ibiblio name="java.net" m2compatible="true" root="http://download.java.net/maven/2"/>
<ibiblio name="jboss" root="http://repository.jboss.com/maven2"
m2compatible="true" usepoms="false"/>
<url name="com.springsource.repository.bundles.release">
<ivy pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
<artifact pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
</url>
<url name="com.springsource.repository.bundles.external">
<ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
<artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
</url>
<ibiblio name="ibiblio" m2compatible="true"/>
</chain>
</resolvers>
</ivysettings>