blob: 2a2f0e97d29caab1b887808973f043d8b40475d0 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
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.
-->
<project name="schema2beans" default="netbeans" basedir=".">
<import file="../nbbuild/templates/projectized.xml"/>
<!-- The genmetadd target should never be part of the regular build.
These files should only be generated when we know that schema2beans
has no bugs (of importance to this schema file). -->
<target name="staticgen" depends="genmetadd,genbeangraph,genconfig"/>
<target name="genmetadd" depends="init">
<echo message="Generating for metadd.dtd"/>
<java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
<classpath>
<pathelement path="${build.classes.dir}"/>
</classpath>
<arg value="-f"/>
<arg file="src/org/netbeans/modules/schema2beansdev/metadd/metadd.dtd"/>
<arg line="-r src -p org.netbeans.modules.schema2beansdev.metadd -premium -noGenInterfaces -nogenerateTimeStamp"/>
</java>
</target>
<target name="genbeangraph" depends="init">
<echo message="Generating for beangraph.xsd"/>
<java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
<classpath>
<pathelement path="${build.classes.dir}"/>
</classpath>
<arg value="-f"/>
<arg file="src/org/netbeans/modules/schema2beansdev/beangraph/beangraph.xsd"/>
<arg line="-xmlschema -r src -p org.netbeans.modules.schema2beansdev.beangraph -premium -noGenInterfaces -nogenerateTimeStamp"/>
</java>
</target>
<target name="genconfig" depends="init">
<echo message="Generating for s2bconfig.xsd"/>
<java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
<classpath>
<pathelement path="${build.classes.dir}"/>
</classpath>
<arg value="-f"/>
<arg file="src/org/netbeans/modules/schema2beansdev/s2bconfig.xsd"/>
<arg line="-mdd src/org/netbeans/modules/schema2beansdev/s2bconfig.mdd -xmlschema -r src"/>
<arg line="-p org.netbeans.modules.schema2beansdev -premium -noGenInterfaces -noCommonInterface -delegator -delegatedir"/>
<arg file="src"/>
<arg line="-delegatepackage org.netbeans.modules.s2banttask -generateSwitches -nogenerateTimeStamp"/>
</java>
</target>
</project>