
<!--
  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.
-->

<!--target name="j2ee.compile">
    <antcall target="compile"> 
    <param name="build.src.dir" value="${basedir}/src"/> 
    <param name="extra.class.path" value="${basedir}/../common/common.jar"/> 
    </antcall>
</target-->

<target name="j2ee.compile">
    <javac debug="true">
        <src path="${basedir}/src"/>
        <!--src path="${basedir}/src"/-->
        <classpath>
            <path refid="cxf.classpath"/>
            <pathelement path="${thirdparty.classpath}"/>
	</classpath>
    </javac>

    <copy todir="">
    </copy>
</target>

<target name="j2ee.build.war">

    <!-- copy wsdl so that it can be included in the web application --> 
    <copy file="${wsdl.location}" todir="${basedir}/src" />

    <war destfile="j2ee-archives/${war.name}" webxml="${web.xml}">

    <webinf dir="etc"> 
	<include name="jboss-web.xml"/>
	<include name="weblogic.xml"/>
    </webinf>

    <lib dir="../common/">
	<include name="common.jar"/>
    </lib>
    
    <classes dir="${basedir}/src">
	<include name="**/*.class"/>
	<include name="**/*.wsdl"/>
    </classes>

    <zipfileset dir="${j2ee.resources.dir}/images" prefix="images">
	<include name="*.gif" />
    </zipfileset>

    <zipfileset dir="${j2ee.resources.dir}">
	<include name="*.css" />
    </zipfileset>
    </war>
</target> 

<!--
<target name="prepare.rar.to.deploy">
    <copy file="${aspen.j2ee.lib.dir}/cxf.rar" todir="${build.archives}"/>
    <jar destfile="${build.archives}/cxf.rar" update="true">
    <zipfileset dir="${basedir}/../common/etc" prefix="META-INF">
	<include name="weblogic-ra.xml"/>
    </zipfileset>
    </jar>
</target>
-->