| | |
| | | <property name="config.dir" location="config" /> |
| | | <property name="schema.dir" location="schema" /> |
| | | |
| | | <!-- CONFIGURE: The path of Xalan-Java distribution. --> |
| | | <property name="xalan.directory" location="${base.dir}/ext/xalan-j" /> |
| | | |
| | | <!-- Build paths relative to extension --> |
| | | <property name="build.dir" location="build" /> |
| | | <property name="classes.dir" location="${build.dir}/classes" /> |
| | |
| | | </delete> |
| | | </target> |
| | | |
| | | <!-- Perform verification for Xalan dependency --> |
| | | <target name="ensurexalan" description="Verify that the Xalan-Java jar files are accessibles."> |
| | | <fail message="Please use -Dxalan.directory to reference the directory that contains Xalan-Java"> |
| | | <condition> |
| | | <not> |
| | | <available property="xalan.directory.exists" file="${xalan.directory}" /> |
| | | </not> |
| | | <!-- > |
| | | <then> |
| | | <echo message="Please use -Dxalan.directory to point to a directory " /> |
| | | <echo message="that contains an unzipped delivery of Xalan-Java." /> |
| | | <echo message="You can download Xalan-Java from the Apache website :" /> |
| | | <echo message=" http://xml.apache.org/xalan-j/" /> |
| | | <echo message="" /> |
| | | < --> |
| | | </condition> |
| | | </fail> |
| | | |
| | | <!-- Xalan-J Class Path : refer to it explicitly from each XSLT task. --> |
| | | <path id="xalan.class.path"> |
| | | <fileset dir="${xalan.directory}"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | </path> |
| | | |
| | | <!-- Verify that all required Xalan jars are present --> |
| | | <property name="xalan.jar.files" value="serializer.jar,xalan.jar,xercesImpl.jar,xml-apis.jar" /> |
| | | <fail message="Missing at least one Xalan-Java jar files in directory ${xalan.directory} (expecting : ${xalan.jar.files})."> |
| | | <condition> |
| | | <not> |
| | | <resourcecount count="4"> |
| | | <fileset dir="${xalan.directory}" includes="${xalan.jar.files}" /> |
| | | </resourcecount> |
| | | </not> |
| | | </condition> |
| | | </fail> |
| | | |
| | | </target> |
| | | |
| | | <!-- Compile the Directory Server extension source files. --> |
| | | <target name="compile" |
| | | depends="init,compileadmin,generate-messages" |
| | |
| | | </target> |
| | | |
| | | <!-- Compile the Directory Server extension configuration definition files. --> |
| | | <target name="compileadmin" depends="validateadmin"> |
| | | <target name="compileadmin" depends="ensurexalan,validateadmin"> |
| | | |
| | | <echo message="classpath = ${xalan.class.path}" /> |
| | | <!-- Copy XML definitions for this extension and core server into the same location --> |
| | | <tempfile property="admin.temp.dir" destDir="${classes.dir}" /> |
| | | <mkdir dir="${admin.temp.dir}" /> |
| | |
| | | from="^(.*)/([^/]+)Configuration\.xml$$" |
| | | to="\1/meta/\2CfgDefn.java" /> |
| | | <param name="base-dir" expression="${admin.temp.dir}" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | |
| | | <xslt basedir="${admin.temp.dir}" |
| | |
| | | from="^(.*)/([^/]+)\.xml$$" |
| | | to="\1/meta/package-info.java" /> |
| | | <param name="type" expression="meta" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | |
| | | <!-- Compile the Directory Server extension configuration client classes. --> |
| | |
| | | from="^(.*)/([^/]+)Configuration\.xml$$" |
| | | to="\1/client/\2CfgClient.java" /> |
| | | <param name="base-dir" expression="${admin.temp.dir}" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | |
| | | <xslt basedir="${admin.temp.dir}" |
| | |
| | | from="^(.*)/([^/]+)\.xml$$" |
| | | to="\1/client/package-info.java" /> |
| | | <param name="type" expression="client" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | |
| | | <!-- Compile the Directory Server extension configuration server classes. --> |
| | |
| | | from="^(.*)/([^/]+)Configuration\.xml$$" |
| | | to="\1/server/\2Cfg.java" /> |
| | | <param name="base-dir" expression="${admin.temp.dir}" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | |
| | | <xslt basedir="${admin.temp.dir}" |
| | |
| | | from="^(.*)/([^/]+)Configuration\.xml$$" |
| | | to="\1/meta/\2CfgDefn.properties" /> |
| | | <param name="base-dir" expression="${admin.temp.dir}" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | |
| | | <!-- Compile the Directory Server extension configuration cli profile property files. --> |
| | |
| | | from="^(.*)/([^/]+)Configuration\.xml$$" |
| | | to="\1/meta/\2CfgDefn.properties" /> |
| | | <param name="base-dir" expression="${admin.temp.dir}" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | |
| | | <!-- Compile the Directory Server extension configuration I18N message files. --> |
| | |
| | | from="^(.*)/([^/]+)Configuration\.xml$$" |
| | | to="\1/meta/\2CfgDefn.properties" /> |
| | | <param name="base-dir" expression="${admin.temp.dir}" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | |
| | | <!-- Compile the Directory Server extension configuration manifest file. --> |
| | |
| | | style="${admin.dir}/manifestMO.xsl"> |
| | | <include name="**/*Configuration.xml" /> |
| | | <exclude name="org/opends/server/admin/std/*.xml" /> |
| | | <classpath refid="xalan.class.path" /> |
| | | </xslt> |
| | | <concat destfile="${classes.dir}/admin/extension.manifest"> |
| | | <fileset dir="${admin.temp.dir}" includes="**/*.manifest" /> |