Integrated r1977: Invoked Xalan using <java> instead of <xslt> to avoid issues with different environments.

git-svn-id: https://svn.libreccm.org/ccm/trunk@274 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2009-10-04 16:59:43 +00:00
parent 3a54653bb7
commit e1985286b0
1 changed files with 67 additions and 55 deletions

View File

@ -1,72 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Already definded: <!-- Already definded:
ccm.project.dir: base dir of the development project ccm.project.dir: base dir of the development project
app.server.bundles.zip name of the installation file app.server.bundles.zip name of the installation file
app.server.parent.dir name of the dir to install into the server into app.server.parent.dir name of the dir to install into the server into
app.server.deploy.dir dir the server are installed into (i.e. CATALINA_HOME) app.server.deploy.dir dir the server are installed into (i.e. CATALINA_HOME)
app.server.conf.dir name of the servers configuration dir app.server.conf.dir name of the servers configuration dir
webapp.dist.dir distribution dir for web applications --> webapp.dist.dir distribution dir for web applications -->
<project name="configure" default="configure"> <project name="configure" default="configure">
<target name="configure"> <target name="configure">
<echo>Validating the schema of project.xml</echo> <echo>Validating the schema of project.xml</echo>
<!-- http://xerces.apache.org/xerces2-j/samples-dom.html#Counter --> <!-- http://xerces.apache.org/xerces2-j/samples-dom.html#Counter -->
<java classname="dom.Counter" classpathref="ccm.tools.classpath" <java classname="dom.Counter" classpathref="ccm.tools.classpath"
errorproperty="project.validation.errors" errorproperty="project.validation.errors"
outputproperty="project.validation.output"> outputproperty="project.validation.output">
<arg value="-s" /> <arg value="-s" />
<arg value="-f" /> <arg value="-f" />
<arg value="-v" /> <arg value="-v" />
<arg value="${ccm.project.dir}/project.xml" /> <arg value="${ccm.project.dir}/project.xml" />
</java> </java>
<if> <if>
<equals arg1="${project.validation.errors}" arg2="" /> <equals arg1="${project.validation.errors}" arg2="" />
<then> <then>
<echo>Validating the schema of project.xml successful</echo> <echo>Validating the schema of project.xml successful</echo>
</then> </then>
<else> <else>
<fail message="${project.validation.errors}" /> <fail message="${project.validation.errors}" />
</else> </else>
</if> </if>
<!-- Building .ccm.classpath for eclipse IDE --> <!-- Building .ccm.classpath for eclipse IDE -->
<!-- <!--
<echo message="Regenerating .classpath" /> <echo message="Regenerating .classpath" />
<xslt style="${tools.xsl.dir}/eclipse-classpath-template.xsl" <xslt style="${tools.xsl.dir}/eclipse-classpath-template.xsl"
in="project.xml" out=".classpath" in="project.xml" out=".classpath"
classpathref="tools.classpath" force="yes"> classpathref="tools.classpath" force="yes">
<param name="base.dir" expression="${project.dir}" /> <param name="base.dir" expression="${project.dir}" />
<param name="shared.lib.dist.dir" expression="${tools.lib.dir}" /> <param name="shared.lib.dist.dir" expression="${tools.lib.dir}" />
</xslt> </xslt>
--> -->
<!-- Building the core: build-projects.xml from projects.xml with all <!-- Building the core: build-projects.xml from projects.xml with all
targets for compile / build / deploy targets for compile / build / deploy
uses currently the xsl templates used by the ccm scripts --> uses currently the xsl templates used by the ccm scripts -->
<echo message="Regenerating build-projects.xml" /> <echo message="Regenerating build-projects.xml" />
<xslt style="${ccm.tools.xsl.dir}/combine.xsl" <java classname="org.apache.xalan.xslt.Process" fork="yes" failonerror="true">
in="project.xml" <classpath refid="ccm.tools.classpath"/>
out=".tmp.project.xml" <arg value="-IN"/>
classpathref="ccm.tools.classpath" force="yes" /> <arg value="project.xml"/>
<xslt style="${ccm.tools.xsl.dir}/build-template.xsl" <arg value="-OUT"/>
in=".tmp.project.xml" <arg value=".tmp.project.xml"/>
out="build-projects.xml" <arg value="-XSL"/>
classpathref="ccm.tools.classpath" force="yes" /> <arg value="${ccm.tools.xsl.dir}/combine.xsl"/>
<delete file=".tmp.project.xml"/> <arg value="-XML"/>
</java>
<java classname="org.apache.xalan.xslt.Process" fork="yes" failonerror="true">
<classpath refid="ccm.tools.classpath"/>
<arg value="-IN" />
<arg value=".tmp.project.xml"/>
<arg value="-OUT"/>
<arg value="build-projects.xml"/>
<arg value="-XSL"/>
<arg value="${ccm.tools.xsl.dir}/build-template.xsl"/>
<arg value="-XML"/>
</java>
<delete file=".tmp.project.xml"/>
<!-- Building ccm.classpath which used to contain a list with dirs <!-- Building ccm.classpath which used to contain a list with dirs
to include into the classpath for each module included in the to include into the classpath for each module included in the
project (~/build/classes ~/build/sql ~/lib ~/pdl ) --> project (~/build/classes ~/build/sql ~/lib ~/pdl ) -->
<!-- <!--
<xslt style="${ccm.tools.xsl.dir}/classpath-template.xsl" in="project.xml" <xslt style="${ccm.tools.xsl.dir}/classpath-template.xsl" in="project.xml"
out="ccm.classpath" classpathref="ccm.tools.classpath" force="yes"> out="ccm.classpath" classpathref="ccm.tools.classpath" force="yes">
<param name="base.dir" expression="${ccm.project.dir}" /> <param name="base.dir" expression="${ccm.project.dir}" />
<param name="shared.lib.dist.dir" expression="${ccm.tools.lib.dir}" /> <param name="shared.lib.dist.dir" expression="${ccm.tools.lib.dir}" />
</xslt> </xslt>
--> -->
</target> </target>
</project> </project>