64 lines
2.3 KiB
XML
64 lines
2.3 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
Copyright 2004-2007 the original author or authors.
|
|
|
|
Licensed 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.
|
|
|
|
- - -
|
|
Author: Colin Sampaleanu
|
|
|
|
This ant XML fragment is meant to be imported into a project build file, along with
|
|
common-targets.xml, in order to provide build handling for EJB 2.1 format EJBs. This
|
|
is an optional module, and due to the way the ant import works, there is no way to
|
|
automatically hook this up into the build. The importing project must override
|
|
appropropriate 'hook' targets from common-targets.xml, and then have the override
|
|
targets depend on both the targets from common-targets and those from here.
|
|
|
|
TODO: this is currently not finished. It is in the process of being re-organized due
|
|
to use of Ivy.
|
|
-->
|
|
|
|
<project name="ejb21" xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
|
|
|
|
<import file="common-targets.xml" />
|
|
|
|
<!--
|
|
init: this target must be hooked up to after common-targets.init
|
|
-->
|
|
<target name="init">
|
|
<!-- where ejbs go -->
|
|
<property name="target.ejb.dir" value="${target.artifacts.dir}/ejb" />
|
|
<!-- where any exploded ejbs go -->
|
|
<property name="target.ear.expanded.dir" value="${target.artifacts.dir}/ejb-expanded/primary" />
|
|
<!-- where deployment descriptors go -->
|
|
<property name="target.ear.expanded.descriptor.dir" value="${target.ear.expanded.dir}/META-INF" />
|
|
</target>
|
|
|
|
<!--
|
|
copy-target-ejbs: copies ejbs from target.ejb.dir where something like XDoclet
|
|
has produced them, into target.expear.dir
|
|
This target must be hooked up to run before or after common-targets.ear.stage.main
|
|
-->
|
|
<target name="copy.target.ejbs" if="build.j2eeapp">
|
|
|
|
<!-- copy ejb modules -->
|
|
<mkdir dir="${target.ejb.dir}" />
|
|
<copy todir="${target.ear.expanded.dir}">
|
|
<fileset dir="${target.ejb.dir}">
|
|
<include name="*.jar" />
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
|
|
</project> |