2007-02-28 17:50:48 -05:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
2004-12-17 08:09:54 -05:00
|
|
|
<project xmlns:modello="modello" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven" xmlns:j="jelly:core">
|
2007-03-25 20:58:18 -04:00
|
|
|
<goal name="customizeModello">
|
|
|
|
<j:if test="${not modelloGenerated}">
|
|
|
|
<!-- We need to have the generated code before to compile -->
|
|
|
|
<ant:copy tofile="${maven.modello.model}" file="${maven.modello.model.m2}"/>
|
|
|
|
<!-- We have to change the namespace before to generate the schema -->
|
|
|
|
<ant:replace file="${maven.modello.model}" token="http://maven.apache.org/POM/4.0.0" value="http://maven.apache.org/POM/3.0.0"/>
|
|
|
|
<attainGoal name="modello:modello"/>
|
|
|
|
<!-- Need the original package as well -->
|
|
|
|
<ant:copy tofile="${maven.modello.model}.2" file="${maven.modello.model}"/>
|
|
|
|
<ant:replace file="${maven.modello.model}.2" token="org.apache.maven.model" value="org.apache.maven.project"/>
|
|
|
|
<maven:set plugin="maven-modello-plugin" property="maven.modello.model" value="${maven.modello.model}.2"/>
|
|
|
|
<attainGoal name="modello:modello"/>
|
|
|
|
<j:set var="modelloGenerated" value="true" scope="parent"/>
|
|
|
|
</j:if>
|
|
|
|
</goal>
|
|
|
|
<!-- We need to have the generated code before to compile -->
|
2007-01-09 19:59:34 -05:00
|
|
|
<preGoal name="java:compile">
|
2007-03-25 20:58:18 -04:00
|
|
|
<attainGoal name="customizeModello"/>
|
2007-01-09 19:59:34 -05:00
|
|
|
</preGoal>
|
2007-03-25 22:02:33 -04:00
|
|
|
<!-- We need to have the generated code before to compute the javadoc and to register the modello report -->
|
|
|
|
<preGoal name="xdoc:register-reports">
|
2007-03-25 20:58:18 -04:00
|
|
|
<attainGoal name="customizeModello"/>
|
2004-12-17 08:09:54 -05:00
|
|
|
</preGoal>
|
2007-04-20 17:47:25 -04:00
|
|
|
<!-- Workaround for MODELLO-87 -->
|
|
|
|
<postGoal name="modello:xdoc">
|
|
|
|
<ant:replace file="${maven.modello.xdoc.targetDirectory}/${maven_modello_model_id}.xml" token="packageName" value="package"/>
|
|
|
|
</postGoal>
|
|
|
|
<postGoal name="modello:xsd">
|
|
|
|
<ant:replace file="${maven.modello.xsd.targetDirectory}/${maven_modello_model_id}-${maven.modello.version}.xsd" token="packageName" value="package"/>
|
|
|
|
</postGoal>
|
2007-03-25 20:58:18 -04:00
|
|
|
</project>
|