Source

main-silver / j2ee.ejbcore / build.xml

Full commit
<?xml version="1.0" encoding="UTF-8"?>
<!--
                Sun Public License Notice

The contents of this file are subject to the Sun Public License
Version 1.0 (the "License"). You may not use this file except in
compliance with the License. A copy of the License is available at
http://www.sun.com/

The Original Code is NetBeans. The Initial Developer of the Original
Code is Sun Microsystems, Inc. Portions Copyright 1997-2005 Sun
Microsystems, Inc. All Rights Reserved.
-->
<project basedir="." default="netbeans" name="j2ee/ejbcore">

    <import file="../../nbbuild/templates/projectized.xml"/>
    
    <property name="ejbcodegenroot" location="src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/gen"/>
        
    <target name="s2beansgen">
          <taskdef name="schema2beans" classname="org.netbeans.modules.s2banttask.Schema2BeansAntTask">
	      <classpath>
		    <pathelement path="${schema2beans/rt.dir}/modules/org-netbeans-modules-schema2beans.jar" />
		    <pathelement path="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
		    <pathelement path="${nb_all}/schema2beans/anttask/s2banttask.jar"/>
	      </classpath>
         </taskdef>
	 <mkdir dir="${ejbcodegenroot}"/>
     	 <schema2beans schema="src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/xsl/BeanCreation.dtd"
		package="org.netbeans.modules.j2ee.ejbcore.ejb.wizard.gen"
		rootDir="src"
		outputType="javabeans"
		attrProp="true"
		standalone="true"/>
	 <schema2beans schema="src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/xsl/InterfaceCreation.dtd"
		package="org.netbeans.modules.j2ee.ejbcore.ejb.wizard.gen"
		rootDir="src"
		outputType="javabeans"
		attrProp="true"
		standalone="true"/>
    </target>
    
    <target depends="init,s2beansgen" name="compile">
	<antcall target="projectized-common.compile"/>
    </target>

    <target name="clean" depends="projectized-common.clean">
        <delete dir="${ejbcodegenroot}"/>
    </target>

</project>