Repository: incubator-juneau Updated Branches: refs/heads/master f16ba3830 -> c652fc527
Re-add these build scripts. They're meant to be used by users of the microservice. The scripts are also referenced in the documentation. Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/c652fc52 Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/c652fc52 Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/c652fc52 Branch: refs/heads/master Commit: c652fc52710ec065e0cfdd5f1d2bb04c4c509f0a Parents: f16ba38 Author: jamesbognar <[email protected]> Authored: Wed Aug 3 15:03:57 2016 -0400 Committer: jamesbognar <[email protected]> Committed: Wed Aug 3 15:03:57 2016 -0400 ---------------------------------------------------------------------- .../build.properties | 17 ++++++ .../build.xml | 57 ++++++++++++++++++++ 2 files changed, 74 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c652fc52/org.apache.juneau.microservice.template/build.properties ---------------------------------------------------------------------- diff --git a/org.apache.juneau.microservice.template/build.properties b/org.apache.juneau.microservice.template/build.properties new file mode 100644 index 0000000..133fbf3 --- /dev/null +++ b/org.apache.juneau.microservice.template/build.properties @@ -0,0 +1,17 @@ +# *************************************************************************************************************************** +# * 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. * +# *************************************************************************************************************************** + +jar = microservice.jar +zip = microservice.zip + + http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c652fc52/org.apache.juneau.microservice.template/build.xml ---------------------------------------------------------------------- diff --git a/org.apache.juneau.microservice.template/build.xml b/org.apache.juneau.microservice.template/build.xml new file mode 100644 index 0000000..52937c7 --- /dev/null +++ b/org.apache.juneau.microservice.template/build.xml @@ -0,0 +1,57 @@ +<?xml version='1.0'?> +<!-- + *************************************************************************************************************************** + * 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. * + * * + *************************************************************************************************************************** +--> + +<!-- + Provides a VERY basic ANT script for creating a microservice zip file. +--> +<project name='Microservice' default='Microservice.Build'> + + <target name='Microservice.Build'> + <tstamp/> + <loadproperties srcFile='build.properties'/> + + <path id='classpath'> + <fileset dir='lib' includes='*.jar'/> + </path> + + <delete dir='build' quiet='true'/> + + <copy todir='build/bin'> + <fileset dir='src' excludes='**/*.java'/> + </copy> + <copy todir='build/microservice'> + <fileset dir='.' includes='*.cfg,lib/**'/> + </copy> + + <javac srcdir='src' destdir='build/bin' fork='true' source='1.6' target='1.6' debug='true' includeantruntime='false'> + <classpath refid='classpath'/> + </javac> + + <jar jarfile='build/microservice/${jar}' basedir='build/bin' duplicate='fail' level='9' manifest='META-INF/MANIFEST.MF'> + <manifest> + <attribute name='Built-By' value='${user.name}'/> + <attribute name='Build-Date' value='${TODAY}'/> + <attribute name='Bundle-Version' value='${version}'/> + </manifest> + </jar> + + <zip basedir='build/microservice' destfile='build/${zip}'/> + + <delete dir='build/bin' quiet='true'/> + </target> + +</project> \ No newline at end of file
