re-structure into standard maven layout
parent
069b5b965b
commit
2471981dbc
@ -1,50 +0,0 @@
|
||||
<?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.
|
||||
|
||||
$Header:$
|
||||
-->
|
||||
|
||||
<project name="Beehive/SVN/AxisImports" default="" basedir=".">
|
||||
|
||||
<import file="../beehive-imports.xml"/>
|
||||
|
||||
<path id="webservice.classpath">
|
||||
<fileset id="webservice.jars" dir="${beehive.home}/external/axis-1.3">
|
||||
<include name="axis.jar"/>
|
||||
<include name="axis-ant.jar"/>
|
||||
<include name="axis-schema.jar"/>
|
||||
<include name="jaxrpc.jar"/>
|
||||
<include name="saaj.jar"/>
|
||||
<include name="wsdl4j-1.5.1.jar"/>
|
||||
</fileset>
|
||||
<path refid="commons-discovery.dependency.path"/>
|
||||
<path refid="commons-logging.dependency.path"/>
|
||||
</path>
|
||||
|
||||
<macrodef name="deploy-webservice-runtime">
|
||||
<attribute name="appdir"/>
|
||||
<sequential>
|
||||
<copy todir="@{appdir}" failOnError="true">
|
||||
<fileset refid="webservice.jars"/>
|
||||
<fileset refid="commons-discovery.fileset"/>
|
||||
<fileset refid="commons-logging.fileset"/>
|
||||
</copy>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
</project>
|
@ -1,45 +0,0 @@
|
||||
<?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.
|
||||
|
||||
$Header:$
|
||||
-->
|
||||
|
||||
<project name="Beehive/SVN/DeployWebappRuntime" default="usage" basedir=".">
|
||||
|
||||
<import file="../beehive-imports.xml"/>
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<!-- -->
|
||||
<!-- Targets for deploying the Beehive runtime into a web application -->
|
||||
<!-- -->
|
||||
<!-- ================================================================ -->
|
||||
|
||||
<!-- params (location webapp.dir) -->
|
||||
<target name="deploy.beehive.webapp.runtime" description="Deploy the Beehive webapp runtime given a webapp root as -Dwebapp.dir">
|
||||
<ant target="deploy.netui" dir="${beehive.home}/netui/" inheritAll="false">
|
||||
<property name="webapp.dir" location="${webapp.dir}"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="deploy.controls.webapp.runtime" description="Deploy the Beehive controls runtime given a webapp root as -Dwebapp.dir">
|
||||
<ant target="deploy.controls.runtime" dir="${beehive.home}/controls/" inheritAll="false">
|
||||
<property name="webapp.dir" location="${webapp.dir}"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,166 +0,0 @@
|
||||
<?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.
|
||||
|
||||
$Header:$
|
||||
-->
|
||||
|
||||
<!--
|
||||
This Ant build file contains <macrodef>s that are used to build
|
||||
Beehive-related source artifacts.
|
||||
-->
|
||||
<project name="Beehive/Tools" default="usage">
|
||||
|
||||
<path id="apt.task.classpath">
|
||||
<path refid="controls.dependency.path"/>
|
||||
<path refid="velocity.dependency.path"/>
|
||||
</path>
|
||||
|
||||
<macrodef name="build-schemas">
|
||||
<attribute name="srcdir" description="The directory containing XML Schemas or XMLBeans xsdconfig files to build"/>
|
||||
<attribute name="destdir" description="The directory to use for files generated during an XSD build"/>
|
||||
<sequential>
|
||||
<taskdef name="xmlbeanbuild"
|
||||
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
||||
classpathref="xbean.dependency.path"/>
|
||||
|
||||
<xmlbeanbuild classpathref="xbean.dependency.path"
|
||||
schema="@{srcdir}"
|
||||
classgendir="@{destdir}"
|
||||
failonerror="true"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<macrodef name="build-controls">
|
||||
<attribute name="srcdir" description="The directory containing controls to build. Required."/>
|
||||
<attribute name="destdir" description="The destination directory for compiled class files. Required."/>
|
||||
<attribute name="tempdir" description="The temporary directory for generated files. Required."/>
|
||||
<attribute name="classpathref" description="The classpath reference for building the controls. Required."/>
|
||||
<attribute name="nocompile" default="false" description="Flag to decide whether to skip compilation. Optional; defaults to false"/>
|
||||
<sequential>
|
||||
<taskdef name="apt"
|
||||
classname="org.apache.beehive.controls.runtime.generator.AptTask"
|
||||
classpathref="apt.task.classpath"
|
||||
onerror="fail"/>
|
||||
|
||||
<!--
|
||||
since Velocity is required at build time for controls, it needs to be
|
||||
explicitly added here via the velocity.dependency.path
|
||||
-->
|
||||
<path id="_controls.build.classpath">
|
||||
<path refid="@{classpathref}"/>
|
||||
<path refid="velocity.dependency.path"/>
|
||||
</path>
|
||||
|
||||
<apt srcdir="@{srcdir}"
|
||||
destdir="@{destdir}"
|
||||
gendir="@{tempdir}"
|
||||
classpathref="_controls.build.classpath"
|
||||
compileByExtension="true"
|
||||
srcExtensions="*.java,*.jcx,*.jcs,*.jws"
|
||||
debug="true"
|
||||
nocompile="@{nocompile}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<!--
|
||||
This macrodef is intended for the compilation of the *page flow* portions of a web application.
|
||||
This macrodef will *not* compile controls inside of a web application. If the web application
|
||||
contains controls, they should be compiled first using the macrodef "build-controls";
|
||||
once the compilation of the controls is complete, the page flows within the web app can be compiled
|
||||
using the macrodef below.
|
||||
-->
|
||||
<macrodef name="build-pageflows">
|
||||
<attribute name="srcdir" description="The root directory which will be scanned for source files. Required."/>
|
||||
<attribute name="classpathref" description="The classpath reference for building page flows. Required."/>
|
||||
<attribute name="sourcepathref"
|
||||
default="_pageflow.default.sourcepath"
|
||||
description="A reference to a path that contains all the source roots. Optional; defaults to a path that contains @{srcdir} and @{srcdir}/WEB-INF/src."/>
|
||||
<attribute name="webcontentdir"
|
||||
default="@{srcdir}"
|
||||
description="The root location for web content (e.g., JSPs, web.xml, etc.). Optional; defaults to @{srcdir}."/>
|
||||
<attribute name="destdir"
|
||||
default="@{srcdir}/WEB-INF/classes"
|
||||
description="The directory for compiled classes and generated resources. Optional; defaults to @{srcdir}/WEB-INF/classes."/>
|
||||
<attribute name="tempdir"
|
||||
default="@{srcdir}/WEB-INF/.tmpbeansrc"
|
||||
description="The directory for any temporary or generated files. Optional; defaults to @{srcdir}/WEB-INF/.tmpbeansrc."/>
|
||||
<attribute name="nocompile"
|
||||
default="false"
|
||||
description="Flag to decide whether to skip compilation. Optional; defaults to false"/>
|
||||
<sequential>
|
||||
<taskdef name="apt"
|
||||
classname="org.apache.beehive.controls.runtime.generator.AptTask"
|
||||
classpathref="apt.task.classpath"
|
||||
onerror="fail"/>
|
||||
|
||||
<!--
|
||||
since the annotation processor for JPFs isn't contained inside of the JPF runtime
|
||||
JAR, it needs to be explicitly added here via the netui-compiler.dependency.path
|
||||
-->
|
||||
<path id="_pageflow.build.classpath">
|
||||
<path refid="@{classpathref}"/>
|
||||
<path refid="netui-compiler.dependency.path"/>
|
||||
<path refid="velocity.dependency.path"/>
|
||||
</path>
|
||||
|
||||
<path id="_pageflow.default.sourcepath">
|
||||
<pathelement path="@{srcdir}"/>
|
||||
<pathelement path="@{srcdir}/WEB-INF/src"/>
|
||||
</path>
|
||||
|
||||
<property name="_pageflow.build.classpath" refid="_pageflow.build.classpath"/>
|
||||
<property name="_pageflow.build.sourcepath" refid="@{sourcepathref}"/>
|
||||
|
||||
<echo> srcdir: @{srcdir}</echo>
|
||||
<echo> classpath: ${_pageflow.build.classpath}</echo>
|
||||
<echo> sourcepath: ${_pageflow.build.sourcepath}</echo>
|
||||
<echo> webcontentdir: @{webcontentdir}</echo>
|
||||
<echo> destdir: @{destdir}</echo>
|
||||
<echo> tempdir: @{tempdir}</echo>
|
||||
|
||||
<mkdir dir="@{destdir}"/>
|
||||
|
||||
<apt srcdir="@{srcdir}"
|
||||
destdir="@{destdir}"
|
||||
gendir="@{tempdir}"
|
||||
classpathref="_pageflow.build.classpath"
|
||||
sourcepathref="@{sourcepathref}"
|
||||
srcExtensions="*.jpf,*.jpfs,*.app,*.jsfb,*.java"
|
||||
processorOptions="web.content.root=@{webcontentdir}"
|
||||
debug="true"
|
||||
nocompile="@{nocompile}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<!-- create a jar of a control -->
|
||||
<taskdef name="control-jar"
|
||||
classname="org.apache.beehive.controls.runtime.packaging.ControlJarTask"
|
||||
classpathref="controls.dependency.path" onerror="report" />
|
||||
|
||||
<target name="usage" description="Print the usage for this Ant build file.">
|
||||
<echo>
|
||||
The beehive-tools.xml file contains Ant macros which can be used
|
||||
to build Beehive related source artifacts such as Controls, Page Flows,
|
||||
and XML Schemas. For examples of how to use these macros, see the
|
||||
Beehive samples.
|
||||
|
||||
Note, this build file does not contain targets that can be called
|
||||
directly on the command line.
|
||||
</echo>
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,158 +0,0 @@
|
||||
<?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.
|
||||
|
||||
$Header:$
|
||||
-->
|
||||
|
||||
<project name="Beehive/SVN/GeronimoImports" default="usage" basedir=".">
|
||||
|
||||
<property environment="os"/>
|
||||
<property name="geronimo.home" location="${os.GERONIMO_HOME}"/>
|
||||
|
||||
<!-- Properties used to run Geronimo -->
|
||||
<property name="geronimo.username" value="system"/>
|
||||
<property name="geronimo.password" value="manager"/>
|
||||
|
||||
<target name="deploy" description="Deploy a app to a running Geronimo server">
|
||||
<fail unless="webapp.dir" message="Can't deploy webapp; the value ${webapp.dir} was unspecified"/>
|
||||
|
||||
<property name="_url" value="file://${webapp.dir}"/>
|
||||
<echo>deploy webapp from ${_url} with context path ${context.path}</echo>
|
||||
|
||||
<java fork="true" jar="${geronimo.home}/bin/deployer.jar">
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.username}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
<arg value="deploy"/>
|
||||
<arg value="${webapp.dir}"/>
|
||||
</java>
|
||||
<sleep seconds="5"/>
|
||||
</target>
|
||||
|
||||
<target name="undeploy" description="Undeploy an app running on a Geronimo server">
|
||||
<!-- context path as used here is actually the targetModuleId for the app to undeploy -->
|
||||
<fail unless="context.path" message="Can't undeploy module; the value ${context.path} was unspecified"/>
|
||||
<java fork="true" jar="${geronimo.home}/bin/deployer.jar">
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.username}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
<arg value="undeploy"/>
|
||||
<arg value="${context.path}"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="redeploy" description="Redeploy an app already running on a Geronimo server">
|
||||
<!-- context path as used here is actually the targetModuleId for the app to redeploy -->
|
||||
<fail unless="context.path" message="Can't undeploy module; the value ${context.path} was unspecified"/>
|
||||
|
||||
<java fork="true" jar="${geronimo.home}/bin/deployer.jar">
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.username}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
<arg value="redeploy"/>
|
||||
<arg value="${context.path}"/>
|
||||
</java>
|
||||
<sleep seconds="5"/>
|
||||
</target>
|
||||
|
||||
<target name="start" description="Start a Geronimo instance.">
|
||||
|
||||
<condition property="cmdline.options" value="">
|
||||
<not><isset property="cmdline.options"/></not>
|
||||
</condition>
|
||||
|
||||
<condition property="java.options" value="">
|
||||
<not><isset property="java.options"/></not>
|
||||
</condition>
|
||||
|
||||
<echo>startup.dir: ${geronimo.home}/bin</echo>
|
||||
<echo>cmdline.options: ${cmdline.options}</echo>
|
||||
<echo>java.options: ${java.options}</echo>
|
||||
|
||||
<echo>Starting Geronimo</echo>
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${geronimo.home}/bin" executable="sh">
|
||||
<env key="GERONIMO_HOME" value="${geronimo.home}"/>
|
||||
<arg line="geronimo.sh start ${cmdline.options}"/>
|
||||
</exec>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${geronimo.home}\bin" executable="cmd.exe">
|
||||
<env key="GERONIMO_HOME" value="${geronimo.home}"/>
|
||||
<arg line="geronimo.bat start ${cmdline.options}"/>
|
||||
</exec>
|
||||
<echo>Pausing for 30 seconds while geronimo starts....</echo>
|
||||
<sleep seconds="30"/>
|
||||
</target>
|
||||
|
||||
<target name="start.with.shmem" description="Start a Geronimo instance with shared memory debugging.">
|
||||
|
||||
<condition property="cmdline.options" value="">
|
||||
<not><isset property="cmdline.options"/></not>
|
||||
</condition>
|
||||
|
||||
<condition property="java.options" value="">
|
||||
<not><isset property="java.options"/></not>
|
||||
</condition>
|
||||
|
||||
<echo>startup.dir: ${geronimo.home}/bin</echo>
|
||||
<echo>cmdline.options: ${cmdline.options}</echo>
|
||||
<echo>java.options: ${java.options}</echo>
|
||||
|
||||
<echo>Starting Geronimo with jpda</echo>
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${geronimo.home}/bin" executable="sh">
|
||||
<env key="GERONIMO_HOME" value="${geronimo.home}"/>
|
||||
<arg line="geronimo.sh jpda start ${cmdline.options}"/>
|
||||
</exec>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${geronimo.home}\bin" executable="cmd.exe">
|
||||
<env key="GERONIMO_HOME" value="${geronimo.home}"/>
|
||||
<arg line="geronimo.bat jpda start ${cmdline.options}"/>
|
||||
</exec>
|
||||
<echo>Pausing for 30 seconds while geronimo starts....</echo>
|
||||
<sleep seconds="30"/>
|
||||
</target>
|
||||
|
||||
<target name="stop" description="Stop the Geronimo server.">
|
||||
<echo>Stop Geronimo in: ${geronimo.home}</echo>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${geronimo.home}\bin" executable="cmd.exe">
|
||||
<arg value="geronimo.bat"/>
|
||||
<arg value="stop"/>
|
||||
<arg value="--force"/>
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.username}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
</exec>
|
||||
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${geronimo.home}/bin" executable="sh">
|
||||
<arg value="geronimo.sh"/>
|
||||
<arg value="stop"/>
|
||||
<arg value="--force"/>
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.username}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="usage" description="Print the usage for this build.xml">
|
||||
<java fork="no" classname="org.apache.tools.ant.Main">
|
||||
<arg line="-f ${ant.file} -projecthelp"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,125 +0,0 @@
|
||||
<?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.
|
||||
|
||||
$Header:$
|
||||
-->
|
||||
|
||||
<project name="jonas-imports" default="" basedir=".">
|
||||
|
||||
<property environment="os"/>
|
||||
<property name="jonas.root" location="${os.JONAS_ROOT}"/>
|
||||
<property name="jonas.deploy.dir" location="${jonas.root}/webapps"/>
|
||||
|
||||
<!-- Properties used to run JOnAS -->
|
||||
|
||||
<path id="appserver.build.classpath">
|
||||
<fileset dir="${jonas.root}/lib/catalina/common/lib">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<target name="deploy" description="Deploy a webapp to a running Jonas server">
|
||||
<fail unless="context.path" message="Can't deploy webapp; the value ${context.path} was unspecified"/>
|
||||
<fail unless="webapp.dir" message="Can't deploy webapp; the value ${webapp.dir} was unspecified"/>
|
||||
|
||||
<available property="webapp.available" file="${webapp.dir}" type="dir"/>
|
||||
<fail unless="webapp.available" message="The webapp at ${webapp.dir} does not exist."/>
|
||||
|
||||
<echo>deploy webapp from ${webapp.dir} with context path ${context.path}</echo>
|
||||
|
||||
<jar destfile="${jonas.deploy.dir}/${context.path}.war"
|
||||
basedir="${webapp.dir}" />
|
||||
|
||||
<echo>deploying via jonas admin</echo>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${jonas.root}\bin\nt" executable="jonas.bat">
|
||||
<env key="JONAS_ROOT" value="${jonas.root}"/>
|
||||
<arg line="/c jonas.bat admin -a ${context.path}.war"/>
|
||||
</exec>
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${jonas.root}/bin/unix" executable="sh">
|
||||
<env key="JONAS_ROOT" value="${jonas.root}"/>
|
||||
<arg line="jonas admin -a ${context.path}.war"/>
|
||||
</exec>
|
||||
|
||||
</target>
|
||||
|
||||
<target name="undeploy" description="Undeploy a webapp running on a Jonas server">
|
||||
<fail unless="context.path" message="Can't undeploy webapp; the
|
||||
value ${context.path} was unspecified"/>
|
||||
|
||||
<echo>undeploying via jonas admin</echo>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${jonas.root}\bin\nt" executable="jonas.bat">
|
||||
<env key="JONAS_ROOT" value="${jonas.root}"/>
|
||||
<arg line="/c jonas.bat admin -r ${context.path}.war"/>
|
||||
</exec>
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${jonas.root}/bin/unix" executable="sh">
|
||||
<env key="JONAS_ROOT" value="${jonas.root}"/>
|
||||
<arg line="jonas admin -r ${context.path}.war"/>
|
||||
</exec>
|
||||
|
||||
<delete file="${jonas.deploy.dir}/${context.path}.war" />
|
||||
</target>
|
||||
|
||||
<target name="redeploy" description="Redeploy a webapp already running on a JOnAS server">
|
||||
<antcall target="undeploy" />
|
||||
<antcall target="deploy" />
|
||||
</target>
|
||||
|
||||
<target name="start" description="Start a Jonas instance.">
|
||||
|
||||
<condition property="cmdline.options" value="">
|
||||
<not><isset property="cmdline.options"/></not>
|
||||
</condition>
|
||||
|
||||
<condition property="java.options" value="">
|
||||
<not><isset property="java.options"/></not>
|
||||
</condition>
|
||||
|
||||
<echo>startup.dir: ${jonas.root}</echo>
|
||||
<echo>cmdline.options: ${cmdline.options}</echo>
|
||||
<echo>java.options: ${java.options}</echo>
|
||||
|
||||
<echo>Start Jonas</echo>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${jonas.root}\bin\nt" executable="jonas.bat">
|
||||
<env key="JONAS_ROOT" value="${jonas.root}"/>
|
||||
<env key="JAVA_OPTS" value="${java.options}"/>
|
||||
<arg line="/c jonas.bat start ${cmdline.options}"/>
|
||||
</exec>
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${jonas.root}/bin/unix" executable="sh">
|
||||
<env key="JONAS_ROOT" value="${jonas.root}"/>
|
||||
<env key="JAVA_OPTS" value="${java.options}"/>
|
||||
<arg line="jonas start ${cmdline.options}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="start.with.shmem" description="Start a JOnAS instance with shared memory debugging.">
|
||||
<echo>shmem is not an option for JOnAS. starting normally...</echo>
|
||||
<antcall target="start" />
|
||||
</target>
|
||||
|
||||
<target name="stop" description="Stop the NetUI server">
|
||||
<echo>Stop Jonas in: ${jonas.root}</echo>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${jonas.root}\bin\nt" executable="jonas.bat">
|
||||
<env key="JONAS_ROOT" value="${jonas.root}"/>
|
||||
<arg line="/c jonas.bat stop"/>
|
||||
</exec>
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${jonas.root}/bin/unix" executable="sh">
|
||||
<env key="JONAS_ROOT" value="${jonas.root}"/>
|
||||
<arg line="jonas stop"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,137 +0,0 @@
|
||||
<?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.
|
||||
|
||||
$Header:$
|
||||
-->
|
||||
<!--
|
||||
Ant build file used to product Beehive nightlies
|
||||
-->
|
||||
<project name="Beehive Nightly Build" default="usage" basedir=".">
|
||||
|
||||
<tstamp>
|
||||
<format property="date" pattern="yyyyMMdd"/>
|
||||
</tstamp>
|
||||
|
||||
<echo>Get SVN revision</echo>
|
||||
<exec executable="svnversion" dir=".." failifexecutionfails="true" outputproperty="beehive.svn.revision">
|
||||
<arg value="."/>
|
||||
</exec>
|
||||
|
||||
<property name="ftp.root" value="http://cvs.apache.org/dist/beehive/nightlies"/>
|
||||
<property name="ftp.dir" value="beehive/${date}"/>
|
||||
<property name="url" value="${ftp.root}/${ftp.dir}"/>
|
||||
<property name="beehive.version" value="${date}-svn${beehive.svn.revision}"/>
|
||||
|
||||
<import file="../beehive-imports.xml"/>
|
||||
|
||||
<echo>Date: ${date}</echo>
|
||||
<echo>Beehive SVN revision: ${beehive.svn.revision}</echo>
|
||||
<echo>Beehive distribution name: ${dist.name}</echo>
|
||||
<echo>FTP URL: ${url}</echo>
|
||||
|
||||
<target name="echo" description="Echo the SVN revision and date for debugging"/>
|
||||
|
||||
<target name="run" description="Run the entire nightly build, test, and distribution packaging / testing process">
|
||||
|
||||
<antcall target="scrub.tomcat"/>
|
||||
|
||||
<ant antfile="../build.xml" target="clean" inheritAll="false"/>
|
||||
<ant antfile="../build.xml" target="deploy" inheritAll="false"/>
|
||||
<ant antfile="../build.xml" target="drt" inheritAll="false"/>
|
||||
|
||||
<java classname="org.apache.tools.ant.Main" fork="true" failOnError="true">
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}"/>
|
||||
</classpath>
|
||||
<arg line="-f ../build.xml build.dist -Dbeehive.version=${beehive.version} -Dant.home=${os.ANT_HOME} -emacs"/>
|
||||
</java>
|
||||
|
||||
<java classname="org.apache.tools.ant.Main" fork="true" failOnError="true">
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}"/>
|
||||
</classpath>
|
||||
<arg line="-f ../build.xml build.dist.src -Dbeehive.version=${beehive.version} -Dant.home=${os.ANT_HOME} -emacs"/>
|
||||
</java>
|
||||
|
||||
<java classname="org.apache.tools.ant.Main" fork="true" failOnError="true">
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}"/>
|
||||
</classpath>
|
||||
<arg line="-f ../build.xml build.dist.lib -Dbeehive.version=${beehive.version} -Dant.home=${os.ANT_HOME} -emacs"/>
|
||||
</java>
|
||||
|
||||
<java classname="org.apache.tools.ant.Main" fork="true" failOnError="true">
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}"/>
|
||||
</classpath>
|
||||
<arg line="-f ../build.xml build.dist.archives -Dbeehive.version=${beehive.version} -Dant.home=${os.ANT_HOME} -emacs"/>
|
||||
</java>
|
||||
|
||||
<antcall target="scrub.tomcat"/>
|
||||
|
||||
<java classname="org.apache.tools.ant.Main" fork="true" failOnError="true">
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}"/>
|
||||
</classpath>
|
||||
<arg line="-f ${beehive.home}/test/dist-test/build.xml build -Ddist.name=${dist.name} -Dant.home=${os.ANT_HOME} -emacs"/>
|
||||
</java>
|
||||
|
||||
<java classname="org.apache.tools.ant.Main" fork="true" failOnError="true">
|
||||
<classpath>
|
||||
<pathelement path="${java.class.path}"/>
|
||||
</classpath>
|
||||
<arg line="-f ${beehive.home}/test/dist-test/build.xml run -Dbeehive.dist.dir=${beehive.home}/build/dist/${dist.name} -Dbeehive.dist.name=${dist.name} -Dant.home=${os.ANT_HOME} -emacs"/>
|
||||
</java>
|
||||
|
||||
<!-- ftp to Apache -->
|
||||
<echo></echo>
|
||||
<echo></echo>
|
||||
<echo>FTP to Beehive distribution to Apache</echo>
|
||||
<echo></echo>
|
||||
<echo></echo>
|
||||
</target>
|
||||
|
||||
<!-- this target is a work in progress for automatically FTPing the archives via sftp to Apache -->
|
||||
<target name="sftp.nightly" description="SFTP the nightly release to apache.org; note, this target currently does not work">
|
||||
<fail unless="user" message="Username undefined"/>
|
||||
|
||||
<property name="sftp.script" location="${beehive.home}/build/dist/archives/sftp-${date}-${beehive.svn.revision}"/>
|
||||
<echo file="${sftp.script}">
|
||||
chdir /www/cvs.apache.org/dist/beehive/nightlies/
|
||||
mkdir ${date}
|
||||
put /home/eko/dev/oss/beehive-nightly/trunk/build/dist/archives/apache-beehive-${date}-${beehive.svn.revision}.tar.gz
|
||||
put /home/eko/dev/oss/beehive-nightly/trunk/build/dist/archives/apache-beehive-${date}-${beehive.svn.revision}.zip
|
||||
put /home/eko/dev/oss/beehive-nightly/trunk/build/dist/archives/README.txt
|
||||
</echo>
|
||||
|
||||
<exec dir="." executable="sftp" os="Linux" output="results.txt">
|
||||
<arg line=" -b ${sftp.script} ${user}@cvs.apache.org"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="scrub.tomcat" description="Scrub a local Tomcat install of Beehive related test web applications">
|
||||
<delete dir="${os.CATALINA_HOME}/work/Catalina/localhost/coreWeb"/>
|
||||
<delete file="${os.CATALINA_HOME}/conf/Catalina/localhost/coreWeb.xml"/>
|
||||
<delete dir="${os.CATALINA_HOME}/work/Catalina/localhost/controlsWeb"/>
|
||||
<delete file="${os.CATALINA_HOME}/conf/Catalina/localhost/controlsWeb.xml"/>
|
||||
<delete dir="${os.CATALINA_HOME}/work/Catalina/localhost/jsfWeb"/>
|
||||
<delete file="${os.CATALINA_HOME}/conf/Catalina/localhost/jsfWeb.xml"/>
|
||||
<delete dir="${os.CATALINA_HOME}/work/Catalina/localhost/urlTemplates"/>
|
||||
<delete file="${os.CATALINA_HOME}/conf/Catalina/localhost/urlTemplates.xml"/>
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,140 +0,0 @@
|
||||
<?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.
|
||||
|
||||
$Header:$
|
||||
-->
|
||||
<project name="Beehive/SVN/TomcatImports" default="usage" basedir=".">
|
||||
|
||||
<property environment="os"/>
|
||||
<property name="tomcat.home" location="${os.CATALINA_HOME}"/>
|
||||
|
||||
<!-- Properties used to run Tomcat -->
|
||||
<!--
|
||||
In the long run, there probably needs to be a tomcat.properties file that is imported here
|
||||
which defines the username / password / port number so that they can be overridden
|
||||
in a user's environment
|
||||
-->
|
||||
<property name="catalina.username" value="manager"/>
|
||||
<property name="catalina.password" value="manager"/>
|
||||
<property name="catalina-ant.jar" location="${tomcat.home}/server/lib/catalina-ant.jar"/>
|
||||
|
||||
<path id="appserver.build.classpath">
|
||||
<fileset dir="${tomcat.home}/common/lib">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<target name="deploy" description="Deploy a webapp to a running Tomcat server">
|
||||
<fail unless="context.path" message="Can't deploy webapp; the value ${context.path} was unspecified"/>
|
||||
<fail unless="webapp.dir" message="Can't deploy webapp; the value ${webapp.dir} was unspecified"/>
|
||||
|
||||
<available property="webapp.available" file="${webapp.dir}" type="dir"/>
|
||||
<fail unless="webapp.available" message="The webapp at ${webapp.dir} does not exist."/>
|
||||
|
||||
<property name="_url" value="file://${webapp.dir}"/>
|
||||
<echo>deploy webapp from ${_url} with context path ${context.path}</echo>
|
||||
|
||||
<taskdef name="tomcatdeploy" classname="org.apache.catalina.ant.DeployTask" classpath="${catalina-ant.jar}"/>
|
||||
<tomcatdeploy path="/${context.path}" localWar="${_url}" username="${catalina.username}" password="${catalina.password}"/>
|
||||
<!-- The Tomcat deploy task doesn't necessarily finish deploying the app when the task completes. Sleep for a few... -->
|
||||
<sleep seconds="5"/>
|
||||
</target>
|
||||
|
||||
<target name="undeploy" description="Undeploy a webapp running on a Tomcat server">
|
||||
<fail unless="context.path" message="Can't undeploy webapp; the value ${context.path} was unspecified"/>
|
||||
|
||||
<taskdef name="tomcatundeploy" classname="org.apache.catalina.ant.UndeployTask" classpath="${catalina-ant.jar}"/>
|
||||
<tomcatundeploy path="/${context.path}" username="${catalina.username}" password="${catalina.password}"/>
|
||||
</target>
|
||||
|
||||
<target name="redeploy" description="Redeploy a webapp already running on a Tomcat server">
|
||||
<fail unless="context.path" message="Can't undeploy webapp; the value ${context.path} was unspecified"/>
|
||||
|
||||
<taskdef name="tomcatreload" classname="org.apache.catalina.ant.ReloadTask" classpath="${catalina-ant.jar}"/>
|
||||
<tomcatreload path="/${context.path}" username="${catalina.username}" password="${catalina.password}"/>
|
||||
<!-- The Tomcat deploy task doesn't necessarily finish deploying the app when the task completes. Sleep for a few... -->
|
||||
<sleep seconds="5"/>
|
||||
</target>
|
||||
|
||||
<target name="start" description="Start a Tomcat instance.">
|
||||
|
||||
<condition property="cmdline.options" value="">
|
||||
<not><isset property="cmdline.options"/></not>
|
||||
</condition>
|
||||
|
||||
<condition property="java.options" value="">
|
||||
<not><isset property="java.options"/></not>
|
||||
</condition>
|
||||
|
||||
<echo>startup.dir: ${tomcat.home}/bin</echo>
|
||||
<echo>cmdline.options: ${cmdline.options}</echo>
|
||||
<echo>java.options: ${java.options}</echo>
|
||||
|
||||
<echo>Start Tomcat</echo>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${tomcat.home}\bin" executable="cmd.exe">
|
||||
<env key="JAVA_OPTS" value="${java.options}"/>
|
||||
<arg line="/c startup.bat ${cmdline.options}"/>
|
||||
</exec>
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${tomcat.home}/bin" executable="sh">
|
||||
<env key="JAVA_OPTS" value="${java.options}"/>
|
||||
<arg line="startup.sh ${cmdline.options}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="start.with.shmem" description="Start a Tomcat instance with shared memory debugging.">
|
||||
|
||||
<condition property="cmdline.options" value="">
|
||||
<not><isset property="cmdline.options"/></not>
|
||||
</condition>
|
||||
|
||||
<condition property="java.options" value="">
|
||||
<not><isset property="java.options"/></not>
|
||||
</condition>
|
||||
|
||||
<echo>startup.dir: ${tomcat.home}/bin</echo>
|
||||
<echo>cmdline.options: ${cmdline.options}</echo>
|
||||
<echo>java.options: ${java.options}</echo>
|
||||
|
||||
<echo>Start Tomcat</echo>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${tomcat.home}\bin" executable="cmd.exe">
|
||||
<env key="JAVA_OPTS" value="${java.options}"/>
|
||||
<arg line="/c catalina.bat jpda start ${cmdline.options}"/>
|
||||
</exec>
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${tomcat.home}/bin" executable="sh">
|
||||
<env key="JAVA_OPTS" value="${java.options}"/>
|
||||
<arg line="startup.sh jpda start ${cmdline.options}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="stop" description="Stop the NetUI server">
|
||||
<echo>Stop Tomcat in: ${tomcat.home}</echo>
|
||||
<exec os="Windows 2000,Windows 2003,Windows XP" dir="${tomcat.home}\bin" executable="cmd.exe">
|
||||
<arg line=" /c shutdown"/>
|
||||
</exec>
|
||||
|
||||
<exec os="Linux,SunOS,Solaris,Mac OS X" dir="${tomcat.home}/bin" executable="sh">
|
||||
<arg line="shutdown.sh"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="usage" description="Print the usage for this build.xml">
|
||||
<java fork="no" classname="org.apache.tools.ant.Main">
|
||||
<arg line="-f ${ant.file} -projecthelp"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
</project>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue