Updated to have a default package target for document projects
This commit is contained in:
@@ -8,31 +8,10 @@
|
||||
</path>
|
||||
|
||||
<property file="${basedir}/../build.properties"/>
|
||||
<import file="${basedir}/package-top-level.xml"/>
|
||||
<import file="../spring-build/multi-bundle/default.xml"/>
|
||||
|
||||
|
||||
<target name="precommit" depends="clean,clean-integration,jar,test"/>
|
||||
|
||||
<target name="package.pre">
|
||||
<delete quiet="true" dir="${package.output.dir}"/>
|
||||
<mkdir dir="${package.output.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="package.post" depends="resources, reference">
|
||||
<mkdir dir="${target.dir}"/>
|
||||
<zip destfile="${package.output.file}" basedir="${package.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="resources">
|
||||
<copy todir="${package.output.dir}">
|
||||
<fileset dir="${basedir}/resources"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="reference">
|
||||
<ant dir="${basedir}/../spring-integration-reference" target="reference" inheritAll="false">
|
||||
<property name="target.dir" value="${package.output.dir}/docs"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
10
build-spring-integration/package-bundle.xml
Normal file
10
build-spring-integration/package-bundle.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="package-bundle">
|
||||
|
||||
<target name="package" depends="ivy.init">
|
||||
<dist-jar/>
|
||||
<src-jar/>
|
||||
<ext-jars/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
32
build-spring-integration/package-top-level.xml
Normal file
32
build-spring-integration/package-top-level.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="package-top-level">
|
||||
|
||||
<target name="package">
|
||||
<delete dir="${package.output.dir}" quiet="true"/>
|
||||
<mkdir dir="${package.output.dir}"/>
|
||||
<delete file="${package.output.file}" quiet="true"/>
|
||||
<mkdir dir="${artifacts.dir}"/>
|
||||
|
||||
<all-bundles target="package">
|
||||
<property name="package.output.dir" value="${package.output.dir}"/>
|
||||
</all-bundles>
|
||||
|
||||
<subant target="package" verbose="true" buildpath="../spring-integration-reference">
|
||||
<property name="package.output.dir" value="${package.output.dir}"/>
|
||||
<propertyset>
|
||||
<propertyref builtin="commandline"/>
|
||||
</propertyset>
|
||||
<property name="timestamp" value="${timestamp}"/>
|
||||
</subant>
|
||||
|
||||
<copy todir="${package.output.dir}">
|
||||
<fileset dir="${basedir}/resources"/>
|
||||
</copy>
|
||||
|
||||
<zip destfile="${package.output.file}">
|
||||
<zipfileset dir="${package.output.dir}" includes="samples/**" filemode="755" prefix="${natural.name}"/>
|
||||
<zipfileset dir="${package.output.dir}" excludes="samples/**" prefix="${natural.name}"/>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@@ -1,8 +0,0 @@
|
||||
@echo off
|
||||
|
||||
setlocal ENABLEDELAYEDEXPANSION
|
||||
|
||||
for /r ..\dist %%j IN (*.jar) do set CP=!CP!;%%j
|
||||
for /r ..\lib %%j IN (*.jar) do set CP=!CP!;%%j
|
||||
|
||||
@java -cp %CP% org.springframework.integration.samples.cafe.CafeDemo %1
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
JARS=`find ../dist ../lib -iname *.jar`
|
||||
CP=`echo $JARS | sed 's/ /:/g'`
|
||||
|
||||
java -cp $CP org.springframework.integration.samples.cafe.CafeDemo $*
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/integration"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||
http://www.springframework.org/schema/integration
|
||||
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
||||
|
||||
<message-bus/>
|
||||
<annotation-driven/>
|
||||
|
||||
<context:component-scan base-package="org.springframework.integration.samples.cafe"/>
|
||||
|
||||
<channel id="orders"/>
|
||||
<channel id="drinks"/>
|
||||
<channel id="coldDrinks"/>
|
||||
<channel id="hotDrinks"/>
|
||||
|
||||
<endpoint input-channel="coldDrinks" handler-ref="barista" handler-method="prepareColdDrink"/>
|
||||
<endpoint input-channel="hotDrinks" handler-ref="barista" handler-method="prepareHotDrink"/>
|
||||
|
||||
<beans:bean id="cafe" class="org.springframework.integration.samples.cafe.Cafe">
|
||||
<beans:property name="orderChannel" ref="orders"/>
|
||||
</beans:bean>
|
||||
|
||||
</beans:beans>
|
||||
Reference in New Issue
Block a user