mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
291 lines
9.7 KiB
XML
291 lines
9.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="Grendel-fragement" default="default" basedir=".">
|
|
<!--
|
|
<section name="common">
|
|
<attribute name="Specification-Title" value="Grendel"/>
|
|
<attribute name="Specification-Version" value="${version}"/>
|
|
<attribute name="Specification-Vendor" value="Mozilla"/>
|
|
<attribute name="Implementation-Title" value="common"/>
|
|
<attribute name="Implementation-Version" value="${version} ${TODAY}"/>
|
|
<attribute name="Implementation-Vendor" value="Mozilla"/>
|
|
</section>
|
|
-->
|
|
|
|
<target name="-fragment-clean" description="Cleans the generated Grendel distrobution">
|
|
<deltree dir="${dist.frag}"/>
|
|
</target>
|
|
|
|
<target name="-fragment" description="Generates the Grendel distrobution"
|
|
depends="-init,-fragment-intro,-fragment-calypso,-fragment-url,
|
|
-fragment-addressbook,-fragment-composition,-fragment-dnd,-fragment-filters,
|
|
-fragment-javamail,-fragment-messaging,-fragment-prefs,-fragment-renderer,
|
|
-fragment-search,-fragment-storage,-fragment-structure,-fragment-ui,
|
|
-fragment-util,-fragment-view,-fragment-widgets,-fragment-main
|
|
">
|
|
<echo>-- Assembling Distrobution</echo>
|
|
<copy todir="${dist.frag.bin}/lib/">
|
|
<fileset dir="${lib}">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
</copy>
|
|
<copy todir="${dist.frag}">
|
|
<fileset dir="${src}/grendel">
|
|
<include name="**/*.gif"/>
|
|
<include name="**/*.png"/>
|
|
<include name="**/*.jpg"/>
|
|
<include name="**/*.tmpl"/>
|
|
<include name="**/*.xml"/>
|
|
<include name="**/*.dtd"/>
|
|
<include name="**/*.htm*"/>
|
|
</fileset>
|
|
<fileset dir="${src}">
|
|
<include name="**/*.properties"/>
|
|
</fileset>
|
|
<fileset dir="${dist}">
|
|
<include name="GrendelLauncher**"/>
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
|
|
<target name="-fragment-build-ant" depends="-compile">
|
|
<echo>Grendel Special Ant Type</echo>
|
|
<jar destfile="${lib.build}/ant.jar" compress="true" index="true">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/util/ant/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-calypso">
|
|
<echo>-- Calypso Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/calypso.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/calypso/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-url">
|
|
<echo>-- URL Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/url.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/URL/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-addressbook">
|
|
<echo>-- Address Book Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/addressbook.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/addressbook/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-composition">
|
|
<echo>-- Composition Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/composition.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/composition/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-dnd">
|
|
<echo>-- DND Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/dnd.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/dnd/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-filters">
|
|
<echo>-- Filters Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/filters.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/filters/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-javamail">
|
|
<echo>-- JavaMail Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/javamail.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/javamail/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-messaging">
|
|
<echo>-- Messaging Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/messaging.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/messaging/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-prefs">
|
|
<echo>-- Prefs Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/prefs.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/prefs/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-renderer">
|
|
<echo>-- Renderer Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/renderer.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/renderer/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-search">
|
|
<echo>-- Search Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/search.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/search/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-storage">
|
|
<echo>-- Storage Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/storage.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/storage/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-structure">
|
|
<echo>-- Structure Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/structure.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/structure/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-ui">
|
|
<echo>-- UI Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/ui.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/ui/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-util">
|
|
<echo>-- Util Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/util.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/util/**"/>
|
|
<exclude name="**/grendel/util/ant/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-view">
|
|
<echo>-- View Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/view.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/view/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-widgets">
|
|
<echo>-- Widgets Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/widgets.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/widgets/**"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-main">
|
|
<echo>-- Main Fragment</echo>
|
|
<jar destfile="${dist.frag.bin}/main.jar">
|
|
<fileset dir="${dist}">
|
|
<include name="**/grendel/*.tl"/>
|
|
<include name="**/grendel/*.class"/>
|
|
<include name="**/META-INF/*"/>
|
|
</fileset>
|
|
<manifest>
|
|
<attribute name="Sealed" value="true"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="-fragment-intro">
|
|
<echo message="== Jar Generation =="/>
|
|
<echo>Generating Fragmented Distrobution</echo>
|
|
<echo>This requires all jars to be specified in the classpath at runtime</echo>
|
|
<echo>This is done for normal use using GrendelLauncher</echo>
|
|
|
|
<mkdir dir="${dist.frag.bin}"/>
|
|
</target>
|
|
|
|
</project>
|