| <?xml version="1.0" encoding="ISO-8859-1"?> |
| |
| <!-- |
| |
| Copyright 2005 The Apache Software Foundation |
| |
| 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. |
| |
| --> |
| |
| <project default="default" |
| xmlns:j="jelly:core" |
| xmlns:u="jelly:util" |
| xmlns:ant="jelly:ant" |
| xmlns:util="jelly:util" |
| xmlns:artifact="artifact"> |
| |
| <postGoal name="java:compile"> |
| <attainGoal name="xbean:generate" /> |
| </postGoal> |
| |
| <goal name="setclasspath" prereqs="java:compile, test:compile"> |
| <path id="test.classpath"> |
| <pathelement path="${maven.build.dest}"/> |
| <pathelement path="target/classes"/> |
| <pathelement path="target/test-classes"/> |
| <path refid="maven.dependency.classpath"/> |
| </path> |
| </goal> |
| |
| <goal name="xbean:generate" description="Generates the XBean XSD, documentation and META-INF/services files."> |
| <path id="test.classpath"> |
| <pathelement path="${maven.build.dest}" /> |
| <pathelement path="${basedir}/target/classes" /> |
| <pathelement path="${basedir}/target/test-classes" /> |
| <path refid="maven.dependency.classpath" /> |
| </path> |
| |
| <taskdef name="xsdGenerate" classname="org.apache.xbean.spring.generator.MappingGeneratorTask"> |
| <classpath refid="test.classpath" /> |
| </taskdef> |
| |
| <xsdGenerate destFile="${basedir}/target/servicemix-${pom.currentVersion}.xsd" |
| namespace="http://servicemix.apache.org/config/1.0" |
| classpathref="test.classpath" srcdir="${basedir}/src/main/java" |
| metaInfDir="${basedir}/target/generated/"/> |
| |
| <copy file="${basedir}/target/servicemix-${pom.currentVersion}.xsd" |
| todir="${basedir}/target/generated/"/> |
| |
| <copy file="${basedir}/target/servicemix-${pom.currentVersion}.xsd" |
| todir="${basedir}/../xdocs"/> |
| |
| <copy file="${basedir}/target/servicemix-${pom.currentVersion}.xsd.html" |
| todir="${basedir}/../xdocs"/> |
| |
| </goal> |
| |
| </project> |