rebuilt devel [release 3.1.9-2mamba;Thu Dec 09 2010]

This commit is contained in:
gil 2024-01-06 00:05:16 +01:00
parent 5d1112d059
commit e98865d998
11 changed files with 1446 additions and 0 deletions

View File

@ -1,2 +1,10 @@
# java-jeuclid # java-jeuclid
JEuclid is a complete MathML rendering solution, consisting of:
* A MathViewer application
* Command line converters from MathML to other formats
* An ant task for automated conversion
* Display components for AWT and Swing
* A component for Apache Cocoon

View File

@ -0,0 +1,266 @@
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationAdapter.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationAdapter.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,36 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public class ApplicationAdapter {
+ public void handleAbout(ApplicationEvent event) {}
+ public void handleOpenApplication(ApplicationEvent event) {}
+ public void handleOpenFile(ApplicationEvent event) {}
+ public void handlePreferences(ApplicationEvent event) {}
+ public void handlePrintFile(ApplicationEvent event) {}
+ public void handleQuit(ApplicationEvent event) {}
+ public void handleReOpenApplication(ApplicationEvent event) {}
+}
+
+
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationBeanInfo.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationBeanInfo.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,29 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public class ApplicationBeanInfo extends java.beans.SimpleBeanInfo
+{
+ public java.awt.Image getIcon(int iconKind) { return null; }
+}
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationEvent.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationEvent.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,34 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public class ApplicationEvent extends java.util.EventObject implements
+java.io.Serializable
+{
+ public ApplicationEvent(Object source) { super(source); }
+ public java.lang.String getFilename() { return null; }
+ public boolean isHandled() { return false; }
+ public void setHandled(boolean state) {}
+}
+
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/Application.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/Application.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,45 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public class Application
+{
+ public Application() { }
+ public void addAboutMenuItem() {}
+ public void addApplicationListener(ApplicationListener listener) {}
+ public void addPreferencesMenuItem() {}
+ public static Application getApplication() { return null; }
+ public boolean getEnabledAboutMenu() { return false; }
+ public boolean getEnabledPreferencesMenu() { return false; }
+ public static java.awt.Point getMouseLocationOnScreen() { return
+null; }
+ public boolean isAboutMenuItemPresent() { return false; }
+ public boolean isPreferencesMenuItemPresent() { return false; }
+ public void removeAboutMenuItem() {}
+ public void removeApplicationListener(ApplicationListener listener)
+{}
+ public void removePreferencesMenuItem() {}
+ public void setEnabledAboutMenu(boolean enable) {}
+ public void setEnabledPreferencesMenu(boolean enable) {}
+}
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationListener.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationListener.java 2008-08-15 19:47:48.000000000 +0200
@@ -0,0 +1,35 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public interface ApplicationListener extends java.util.EventListener
+{
+ public void handleAbout(ApplicationEvent event);
+ public void handleOpenApplication(ApplicationEvent event);
+ public void handleOpenFile(ApplicationEvent event);
+ public void handlePreferences(ApplicationEvent event);
+ public void handlePrintFile(ApplicationEvent event);
+ public void handleQuit(ApplicationEvent event);
+ public void handleReOpenApplication(ApplicationEvent event);
+}
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/CocoaComponent.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/CocoaComponent.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,31 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc published at
+ * http://developer.apple.com. It makes compiling code which uses Apple EAWT
+ * on non-Mac platforms possible.
+ */
+
+
+package com.apple.eawt;
+
+public abstract class CocoaComponent extends java.awt.Canvas
+{
+ public abstract int createNSView();
+ public long createNSViewLong() { return 0; }
+ public abstract java.awt.Dimension getMaximumSize();
+ public abstract java.awt.Dimension getMinimumSize();
+ public abstract java.awt.Dimension getPreferredSize();
+ public void sendMessage(int messageID, java.lang.Object message) {}
+}
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/package 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/package 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,35 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public interface ApplicationListener extends java.util.EventListener
+{
+ public void handleAbout(ApplicationEvent event);
+ public void handleOpenApplication(ApplicationEvent event);
+ public void handleOpenFile(ApplicationEvent event);
+ public void handlePreferences(ApplicationEvent event);
+ public void handlePrintFile(ApplicationEvent event);
+ public void handleQuit(ApplicationEvent event);
+ public void handleReOpenApplication(ApplicationEvent event);
+}
+

View File

@ -0,0 +1,229 @@
<project default="compile-core" basedir="." name="jeuclid">
<property name="build.directory" value="target"/>
<property name="build.output" value="${build.directory}/classes"/>
<property environment="env"/>
<path id="libs-build-classpath">
<fileset dir="./lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init" description="Init dependencies">
<mkdir dir="${build.directory}"/>
<echo message="------------------- ${ant.project.name} ----------------"/>
<echo message="${ant.version}"/>
<echo message="VM: ${java.vm.version}, ${java.vm.vendor}"/>
<echo message="JAVA_HOME: ${env.JAVA_HOME}"/>
<available property="ant.present" classname="org.apache.tools.ant.BuildException" classpathref="libs-build-classpath"/>
<condition property="ant.message" value="ANT Support PRESENT">
<equals arg1="${ant.present}" arg2="true"/>
</condition>
<condition property="ant.message" value="ANT Support NOT Present">
<not>
<equals arg1="${ant.present}" arg2="true"/>
</not>
</condition>
<echo message="${ant.message}"/>
<available property="batik.present" classname="org.apache.batik.dom.AbstractNode" classpathref="libs-build-classpath"/>
<condition property="batik.message" value="Batik Support PRESENT">
<equals arg1="${batik.present}" arg2="true"/>
</condition>
<condition property="batik.message" value="Batik Support NOT Present">
<not>
<equals arg1="${batik.present}" arg2="true"/>
</not>
</condition>
<echo message="${batik.message}"/>
<available property="logging.present" classname="org.apache.commons.logging.LogFactory" classpathref="libs-build-classpath"/>
<condition property="logging.message" value="commons-logging Support PRESENT">
<equals arg1="${logging.present}" arg2="true"/>
</condition>
<condition property="logging.message" value="commons-logging Support NOT Present">
<not>
<equals arg1="${logging.present}" arg2="true"/>
</not>
</condition>
<echo message="${logging.message}"/>
<!--
<available property="freeheputil.present" classname="org.freehep.util.export.ExportFileType" classpathref="libs-build-classpath"/>
<condition property="freeheputil.message" value="FreeHep Util Support PRESENT">
<equals arg1="${freeheputil.present}" arg2="true"/>
</condition>
<condition property="freeheputil.message" value="FreeHep Util Support NOT Present">
<not>
<equals arg1="${freeheputil.present}" arg2="true"/>
</not>
</condition>
<echo message="${freeheputil.message}"/>
<available property="freehepgraph.present" classname="org.freehep.graphics2d.VectorGraphics" classpathref="libs-build-classpath"/>
<condition property="freehepgraph.message" value="FreeHep Graphics2D Support PRESENT">
<equals arg1="${freehepgraph.present}" arg2="true"/>
</condition>
<condition property="freehepgraph.message" value="FreeHep Graphics2D Support NOT Present">
<not>
<equals arg1="${freehepgraph.present}" arg2="true"/>
</not>
</condition>
<echo message="${freehepgraph.message}"/>
-->
<available property="xmlext.present" classname="org.xml.sax.InputSource" classpathref="libs-build-classpath"/>
<condition property="xmlext.message" value="xml-commons-external Support PRESENT">
<equals arg1="${xmlext.present}" arg2="true"/>
</condition>
<condition property="xmlext.message" value="xml-commons-external Support NOT Present">
<not>
<equals arg1="${xmlext.present}" arg2="true"/>
</not>
</condition>
<echo message="${xmlext.message}"/>
<available property="xmlgraphics.present" classname="org.apache.xmlgraphics.util.ClasspathResource" classpathref="libs-build-classpath"/>
<condition property="xmlgraphics.message" value="xmlgraphics-commons Support PRESENT">
<equals arg1="${xmlgraphics.present}" arg2="true"/>
</condition>
<condition property="xmlgraphics.message" value="xmlgraphics-commons Support NOT Present">
<not>
<equals arg1="${xmlgraphics.present}" arg2="true"/>
</not>
</condition>
<echo message="${xmlgraphics.message}"/>
<available property="commonscli.present" classname="org.apache.commons.cli.CommandLine" classpathref="libs-build-classpath"/>
<condition property="commonscli.message" value="commons-cli Support PRESENT">
<equals arg1="${commonscli.present}" arg2="true"/>
</condition>
<condition property="commonscli.message" value="commons-cli Support NOT Present">
<not>
<equals arg1="${commonscli.present}" arg2="true"/>
</not>
</condition>
<echo message="${commonscli.message}"/>
<available property="commonslang.present" classname="org.apache.commons.lang.StringUtils" classpathref="libs-build-classpath"/>
<condition property="commonslang.message" value="commons-lang Support PRESENT">
<equals arg1="${commonslang.present}" arg2="true"/>
</condition>
<condition property="commonslang.message" value="commons-lang Support NOT Present">
<not>
<equals arg1="${commonslang.present}" arg2="true"/>
</not>
</condition>
<echo message="${commonslang.message}"/>
</target>
<target name="compile-core" depends="init" description="Compile the core code">
<property name="package.name" value="jeuclid-core" />
<property name="full.build.output.core" value="${package.name}/${build.output}" />
<mkdir dir="${full.build.output.core}"/>
<javac destdir="${full.build.output.core}" debug="true" deprecation="true" optimize="false" source="5">
<src>
<pathelement location="${package.name}/src/main/java"/>
</src>
<exclude name="**/FreeHep*" />
<classpath refid="libs-build-classpath"/>
</javac>
<copy todir="${full.build.output.core}">
<fileset dir="${package.name}/src/main/resources"/>
</copy>
<jar jarfile="${build.directory}/${package.name}.jar" basedir="${full.build.output.core}"/>
</target>
<target name="compile-mathviewer" depends="init, compile-core" description="Compile the mathviewer code">
<property name="package.name.mathviewer" value="jeuclid-mathviewer" />
<property name="full.build.output.mathviewer" value="${package.name.mathviewer}/${build.output}" />
<mkdir dir="${full.build.output.mathviewer}"/>
<javac destdir="${package.name.mathviewer}/${build.output}" debug="true" deprecation="true" optimize="false" source="5">
<src>
<pathelement location="${package.name.mathviewer}/src/main/java"/>
</src>
<exclude name="**/FreeHep*" />
<classpath>
<fileset dir="${build.directory}">
<include name="jeuclid-core.jar"/>
</fileset>
<path refid="libs-build-classpath"/>
</classpath>
</javac>
<copy todir="${full.build.output.mathviewer}">
<fileset dir="${package.name.mathviewer}/src/main/resources"/>
</copy>
<jar jarfile="${build.directory}/${package.name.mathviewer}.jar" basedir="${full.build.output.mathviewer}">
<manifest>
<attribute name="Main-Class" value="net.sourceforge.jeuclid.app.mathviewer.MathViewer"/>
</manifest>
</jar>
</target>
<target name="compile-cli" depends="init, compile-core" description="Compile the jeuclid cli">
<property name="package.name.cli" value="jeuclid-cli" />
<property name="full.build.output.cli" value="${package.name.cli}/${build.output}" />
<mkdir dir="${full.build.output.cli}"/>
<javac destdir="${full.build.output.cli}" debug="true" deprecation="true" optimize="false" source="5">
<src>
<pathelement location="${package.name.cli}/src/main/java"/>
</src>
<classpath>
<fileset dir="${build.directory}">
<include name="jeuclid-core.jar"/>
</fileset>
<path refid="libs-build-classpath"/>
</classpath>
</javac>
<jar jarfile="${build.directory}/${package.name.cli}.jar" basedir="${full.build.output.cli}">
<manifest>
<attribute name="Main-Class" value="net.sourceforge.jeuclid.app.Mml2xxx"/>
</manifest>
</jar>
</target>
<target name="compile-fop" depends="init, compile-core" description="Compile the jeuclid fop">
<property name="package.name.fop" value="jeuclid-fop" />
<property name="full.build.output.fop" value="${package.name.fop}/${build.output}" />
<mkdir dir="${full.build.output.fop}"/>
<javac destdir="${full.build.output.fop}" debug="true" deprecation="true" optimize="false" source="5">
<src>
<pathelement location="${package.name.fop}/src/main/java"/>
</src>
<classpath>
<fileset dir="${build.directory}">
<include name="jeuclid-core.jar"/>
</fileset>
<path refid="libs-build-classpath"/>
</classpath>
</javac>
<copy todir="${full.build.output.fop}">
<fileset dir="${package.name.fop}/src/main/resources"/>
</copy>
<jar jarfile="${build.directory}/${package.name.fop}.jar" basedir="${full.build.output.fop}"/>
</target>
<!-- Clean sources -->
<!--
<target name="clean" description="clean sources">
<delete dir="${build.directory}"/>
<delete dir="jeuclid-core/${build.directory}"/>
<delete dir="jeuclid-mathviewer/${build.directory}"/>
<delete dir="jeuclid-cli/${build.directory}"/>
<delete dir="jeuclid-fop/${build.directory}"/>
</target>
-->
</project>

View File

@ -0,0 +1,18 @@
--- jeuclid-mathviewer/src/main/java/net/sourceforge/jeuclid/app/mathviewer/MathViewer.java 2009-10-09 15:22:40.000000000 +0200
+++ jeuclid-mathviewer/src/main/java/net/sourceforge/jeuclid/app/mathviewer/MathViewer.java-gil 2009-11-20 14:36:18.000000000 +0100
@@ -86,13 +86,13 @@
public void run() {
final MainFrame mainFrame = new MainFrame();
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- if (MathViewer.OSX) {
+ /*if (MathViewer.OSX) {
final Application a = Application.getApplication();
a.setEnabledAboutMenu(true);
a.setEnabledPreferencesMenu(true);
a.addApplicationListener(new MainFrameAppListener(
mainFrame));
- }
+ }*/
if (MathViewer.source != null) {
mainFrame.loadFile(MathViewer.source);
}

View File

@ -0,0 +1,8 @@
#!/bin/bash
. /usr/share/java-utils/java-functions
MAIN_CLASS=net.sourceforge.jeuclid.app.Mml2xxx
set_classpath "commons-logging commons-cli commons-lang24 xmlgraphics-commons batik-all commons-io jeuclid-core jeuclid-core16 jeuclid-cli"
run "$@"

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
<!-- ====================================================================== -->
<project name="jeuclid-core16" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Import maven-build.xml into the current project -->
<!-- ====================================================================== -->
<import file="maven-build.xml"/>
<!-- ====================================================================== -->
<!-- Help target -->
<!-- ====================================================================== -->
<target name="help">
<echo message="Please run: $ant -projecthelp"/>
</target>
</project>

View File

@ -0,0 +1,21 @@
#Generated by Maven Ant Plugin - DO NOT EDIT THIS FILE!
#Fri Feb 26 14:48:43 CET 2010
maven.settings.offline=false
jeuclid.version=3.1.9
maven.build.finalName=jeuclid-core16-${jeuclid.version}
maven.build.resourceDir.0=src/main/resources
maven.build.testOutputDir=${maven.build.dir}/test-classes
maven.build.testResourceDir.0=src/test/resources
runtime.lib=/opt/java/jdk1.6.0/jre/lib/rt.jar
maven.reporting.outputDirectory=${maven.build.dir}/site
project.build.sourceEncoding=UTF-8
maven.build.srcDir.0=src/main/java
project.build.directory=${maven.build.dir}
maven.test.reports=${maven.build.dir}/test-reports
maven.build.dir=target
project.build.outputDirectory=${maven.build.outputDir}
common.dir=${user.home}/jeuclid-core16/..
maven.build.testDir.0=src/test/java
maven.settings.interactiveMode=true
maven.repo.local=${user.home}/.m2/repository
maven.build.outputDir=${maven.build.dir}/classes

View File

@ -0,0 +1,591 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Any modifications will be overwritten. -->
<!-- -->
<!-- Generated by Maven Ant Plugin on 2/26/10 2:48 PM -->
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<project name="jeuclid-core16-from-maven" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="${user.home}/.m2/maven.properties"/>
<property file="maven-build.properties"/>
<property name="jeuclid.version" value="3.1.9"/>
<property name="maven.build.finalName" value="jeuclid-core16-${jeuclid.version}"/>
<property name="maven.build.dir" value="target"/>
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
<property name="maven.build.srcDir.0" value="src/main/java"/>
<property name="maven.build.resourceDir.0" value="src/main/resources"/>
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
<property name="maven.build.testDir.0" value="src/test/java"/>
<property name="maven.build.testResourceDir.0" value="src/test/resources"/>
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
<property name="maven.pom.dir" value="."/>
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>
<property name="maven.settings.offline" value="false"/>
<property name="maven.settings.interactiveMode" value="true"/>
<property name="j2se.api" value="http://java.sun.com/j2se/1.5.0/docs/api"/>
<property name="testng.api" value="http://testng.org/javadocs/"/>
<property name="jcl.api" value="http://jakarta.apache.org/commons/logging/apidocs/"/>
<property name="jcip.api" value="http://jcip.net/annotations/doc/"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<fileset dir="${maven.repo.local}">
<include name="net/sourceforge/jeuclid/jeuclid-core/${jeuclid.version}/jeuclid-core-${jeuclid.version}.jar"/>
<include name="commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/>
<include name="org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"/>
<include name="xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"/>
<include name="xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"/>
<include name="org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"/>
<include name="org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"/>
<include name="commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"/>
</fileset>
</path>
<path id="build.test.classpath">
<fileset dir="${maven.repo.local}">
<include name="net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"/>
<include name="commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/>
<include name="org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"/>
<include name="xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"/>
<include name="xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"/>
<include name="org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"/>
<include name="org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"/>
<include name="org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"/>
<include name="commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"/>
<include name="org/testng/testng/5.8/testng-5.8-jdk15.jar"/>
<include name="junit/junit/3.8.1/junit-3.8.1.jar"/>
</fileset>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${maven.build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" depends="get-deps" description="Compile the code">
<mkdir dir="${maven.build.outputDir}"/>
<javac destdir="${maven.build.outputDir}"
nowarn="false"
debug="false"
optimize="true"
deprecation="true"
target="1.6"
verbose="false"
fork="false"
source="1.6">
<src>
<pathelement location="${maven.build.srcDir.0}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
</target>
<!-- ====================================================================== -->
<!-- Test-compilation target -->
<!-- ====================================================================== -->
<target name="compile-tests"
depends="compile"
description="Compile the test code"
unless="maven.test.skip">
<mkdir dir="${maven.build.testOutputDir}"/>
<javac destdir="${maven.build.testOutputDir}"
nowarn="false"
debug="false"
optimize="true"
deprecation="true"
target="1.6"
verbose="false"
fork="false"
source="1.6">
<src>
<pathelement location="${maven.build.testDir.0}"/>
</src>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${maven.build.outputDir}"/>
</classpath>
</javac>
</target>
<!-- ====================================================================== -->
<!-- Run all tests -->
<!-- ====================================================================== -->
<target name="test"
depends="compile-tests, junit-missing"
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${maven.build.outputDir}"/>
<pathelement location="${maven.build.testOutputDir}"/>
</classpath>
<batchtest todir="${maven.test.reports}" unless="test">
<fileset dir="${maven.build.testDir.0}">
<include name="**/Test*.java"/>
<include name="**/*Test.java"/>
<include name="**/*TestCase.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
<batchtest todir="${maven.test.reports}" if="test">
<fileset dir="${maven.build.testDir.0}">
<include name="**/${test}.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-junit-present">
<available classname="junit.framework.Test" property="junit.present"/>
</target>
<target name="test-junit-status"
depends="test-junit-present">
<condition property="junit.missing">
<and>
<isfalse value="${junit.present}"/>
<isfalse value="${maven.test.skip}"/>
</and>
</condition>
<condition property="junit.skipped">
<or>
<isfalse value="${junit.present}"/>
<istrue value="${maven.test.skip}"/>
</or>
</condition>
</target>
<target name="junit-missing"
depends="test-junit-status"
if="junit.missing">
<echo>=================================== WARNING ===================================</echo>
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
<echo>===============================================================================</echo>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${maven.build.srcDir.0}"
packagenames="*"
destdir="${maven.reporting.outputDirectory}/apidocs"
access="protected"
old="false"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="ISO-8859-1"
linksource="true"
breakiterator="false">
<link href="${j2se.api}"/>
<link href="${testng.api}"/>
<link href="${jcl.api}"/>
<link href="${jcip.api}"/>
</javadoc>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile,test" description="Package the application">
<tstamp>
<format property="tstamp" pattern="E M d HH:mm:ss yyyy" />
</tstamp>
<mkdir dir="${maven.build.outputDir}/META-INF/maven/net.sourceforge.jeuclid/jeuclid-core16/"/>
<copy file="${maven.pom.dir}/pom.xml"
todir="${maven.build.outputDir}/META-INF/maven/net.sourceforge.jeuclid/jeuclid-core16"/>
<echo message="#${tstamp}&#10;" file="${maven.build.outputDir}/META-INF/maven/net.sourceforge.jeuclid/jeuclid-core16/pom.properties" append="false"/>
<echo message="version=${jeuclid.version}&#10;" file="${maven.build.outputDir}/META-INF/maven/net.sourceforge.jeuclid/jeuclid-core16/pom.properties" append="true"/>
<echo message="groupId=net.sourceforge.jeuclid&#10;" file="${maven.build.outputDir}/META-INF/maven/net.sourceforge.jeuclid/jeuclid-core16/pom.properties" append="true"/>
<echo message="artifactId=jeuclid-core16" file="${maven.build.outputDir}/META-INF/maven/net.sourceforge.jeuclid/jeuclid-core16/pom.properties" append="true"/>
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
compress="true"
index="false"
basedir="${maven.build.outputDir}"
excludes="**/package.html">
<manifest>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Archiver-Version" value="Plexus Archiver"/>
<attribute name="Created-By" value="${java.vm.version} (${java.vm.specification.vendor})"/>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Built-Jdk" value="${java.version}"/>
<attribute name="Maven-ArtifactId" value="jeuclid-core16"/>
<attribute name="Maven-GroupId" value="net.sourceforge.jeuclid"/>
<attribute name="Maven-Version" value="${jeuclid.version}"/>
</manifest>
</jar>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
<!-- ====================================================================== -->
<!-- Download dependencies target -->
<!-- ====================================================================== -->
<target name="test-offline">
<condition property="maven.mode.offline">
<equals arg1="${maven.settings.offline}" arg2="true"/>
</condition>
</target>
<target name="get-deps"
depends="test-offline"
description="Download all dependencies"
unless="maven.mode.offline">
<mkdir dir="${maven.repo.local}"/>
<mkdir dir="${maven.repo.local}/net/sourceforge/jeuclid/jeuclid-core/3.1.9"/>
<get src="http://jeuclid.sf.net/m2-release/net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"
dest="${maven.repo.local}/net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"
dest="${maven.repo.local}/net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"
dest="${maven.repo.local}/net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"
dest="${maven.repo.local}/net/sourceforge/jeuclid/jeuclid-core/3.1.9/jeuclid-core-3.1.9.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/commons-logging/commons-logging/1.1.1"/>
<get src="http://jeuclid.sf.net/m2-release/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
dest="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
dest="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
dest="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
dest="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-svg-dom/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-anim/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-awt-util/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-dom/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/xml-apis/xml-apis/1.3.04"/>
<get src="http://jeuclid.sf.net/m2-release/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"
dest="${maven.repo.local}/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"
dest="${maven.repo.local}/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"
dest="${maven.repo.local}/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"
dest="${maven.repo.local}/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04"/>
<get src="http://jeuclid.sf.net/m2-release/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"
dest="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"
dest="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"
dest="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"
dest="${maven.repo.local}/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-xml/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/batik-parser/1.7"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1"/>
<get src="http://jeuclid.sf.net/m2-release/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"
dest="${maven.repo.local}/org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/commons-io/commons-io/1.3.1"/>
<get src="http://jeuclid.sf.net/m2-release/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"
dest="${maven.repo.local}/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"
dest="${maven.repo.local}/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"
dest="${maven.repo.local}/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"
dest="${maven.repo.local}/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/testng/testng/5.8"/>
<get src="http://jeuclid.sf.net/m2-release/org/testng/testng/5.8/testng-5.8-jdk15.jar"
dest="${maven.repo.local}/org/testng/testng/5.8/testng-5.8-jdk15.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/org/testng/testng/5.8/testng-5.8-jdk15.jar"
dest="${maven.repo.local}/org/testng/testng/5.8/testng-5.8-jdk15.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/org/testng/testng/5.8/testng-5.8-jdk15.jar"
dest="${maven.repo.local}/org/testng/testng/5.8/testng-5.8-jdk15.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/testng/testng/5.8/testng-5.8-jdk15.jar"
dest="${maven.repo.local}/org/testng/testng/5.8/testng-5.8-jdk15.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/junit/junit/3.8.1"/>
<get src="http://jeuclid.sf.net/m2-release/junit/junit/3.8.1/junit-3.8.1.jar"
dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://jeuclid.sf.net/m2/junit/junit/3.8.1/junit-3.8.1.jar"
dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://java.freehep.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar"
dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar"
dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
</target>
</project>

View File

@ -0,0 +1,8 @@
#!/bin/bash
. /usr/share/java-utils/java-functions
MAIN_CLASS=net.sourceforge.jeuclid.app.mathviewer.MathViewer
set_classpath "commons-logging commons-io xmlgraphics-commons batik-all jeuclid-core jeuclid-core16 jeuclid-mathviewer"
run "$@"

264
java-jeuclid.spec Normal file
View File

@ -0,0 +1,264 @@
%define majver %(echo %version | cut -d. -f 1-2)
Name: java-jeuclid
Version: 3.1.9
Release: 2mamba
Summary: MathML Rendering Solution
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://jeuclid.sourceforge.net/
Source: http://downloads.sourceforge.net/project/jeuclid/%{majver}.x/%{version}/jeuclid-parent-%{version}-src.zip
# http://cvs.fedoraproject.org/viewvc/rpms/jeuclid/
# build script based on debian
Source1: java-jeuclid-3.1.8-build1.xml
Source2: jeuclid-mathviewer.desktop
Source3: java-jeuclid-3.1.9-mathviewer.sh
Source4: java-jeuclid-3.1.9-cli.sh
#Source5: java-jeuclid-3.1.8-mathviewer_it.properties
#Source6: maven2-2.2.0-settings.xml
Source7: java-jeuclid-3.1.9-core16-build.xml
Source8: java-jeuclid-3.1.9-core16-maven-build.xml
Source9: java-jeuclid-3.1.9-core16-maven-build.properties
# removes OSX dep
Patch0: java-jeuclid-3.1.8-removes-OSX-dep.patch
# compiling code that uses Apple EAWT without the lib
Patch1: java-jeuclid-3.1.8-AppleJavaExtensions.patch
License: Apache Software License 2.0
BuildRequires: apache-ant
BuildRequires: apache-batik = 1.7
BuildRequires: apache-fop == 0.95
BuildRequires: apache-log4j
BuildRequires: hicolor-icon-theme
BuildRequires: jakarta-commons-io
BuildRequires: jakarta-commons-lang24
BuildRequires: jakarta-commons-logging
#BuildRequires: jakarta-commons-logging-javadoc
BuildRequires: java-cip-annotations
#BuildRequires: java-cip-annotations-javadoc
BuildRequires: java-testng
#BuildRequires: java-testng-javadoc
BuildRequires: java-junit3
#BuildRequires: sun-java-javadoc
# xml-apis xml-apis-ext
BuildRequires: xml-commons-apis
BuildRequires: xmlgraphics-commons == 1.3.1
Requires: apache-batik = 1.7
Requires: jakarta-commons-logging
Requires: java-cip-annotations
Requires: jpackage-utils
Requires: xmlgraphics-commons == 1.3.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
JEuclid is a complete MathML rendering solution, consisting of:
* A MathViewer application
* Command line converters from MathML to other formats
* An ant task for automated conversion
* Display components for AWT and Swing
* A component for Apache Cocoon
%package cli
Group: Applications/Publishing
Summary: JEuclid Command line interface
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: jakarta-commons-cli
Requires: jakarta-commons-io
Requires: jakarta-commons-lang24
%description cli
The %{name}-cli package provides a command line interface for %{name}.
%package fop
Group: Applications/Publishing
Summary: JEuclid plug-in for FOP
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: apache-fop == 0.95
%description fop
The %{name}-fop package is a jeuclid plug-in for Apache FOP.
%package mathviewer
Group: Applications/Publishing
Summary: Viewer for MathML files
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: hicolor-icon-theme
%description mathviewer
The %{name}-mathviewer package contains the Swing MathViewer application.
%prep
%setup -q -n jeuclid-parent-%{version}
chmod -R go=u-w *
cp %{SOURCE1} build.xml
cp %{SOURCE7} jeuclid-core16/build.xml
cp %{SOURCE8} jeuclid-core16/maven-build.xml
cp %{SOURCE9} jeuclid-core16/maven-build.properties
#cp %{SOURCE5} jeuclid-mathviewer/src/main/resources/intl/mathviewer_it.properties
%patch0 -p0
%patch1 -p1
# removes the FreeHep support
rm -f jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/FreeHep*;
sed 's/\r//' NOTICE > NOTICE.tmp
touch -r NOTICE NOTICE.tmp;
mv NOTICE.tmp NOTICE
for j in $(find . -name "*.jar" -o -name "*.class" ); do
rm -f $j
done
mkdir -p lib
pushd lib
# jeuclid-core
ln -sf $(build-classpath ant-1.7.1) ant.jar
ln -sf $(build-classpath batik-all) batik-all.jar
# commons-logging.jar
ln -sf $(build-classpath jcip-annotations) jcip-annotations.jar
ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
# xml-apis-ext.jar
# xmlgraphics-commons.jar
# jeuclid-cli
ln -sf $(build-classpath commons-cli) commons-cli.jar
ln -sf $(build-classpath commons-lang24) commons-lang.jar
# jeuclid-core.jar
# xmlgraphics-commons.jar
# jeuclid-mathviewer
# AppleJavaExtensions.jar
ln -sf $(build-classpath commons-logging) commons-logging.jar
# jeuclid-core.jar
# jeuclid-fop
# batik-all.jar
# commons-logging.jar
ln -sf $(build-classpath fop) fop.jar
ln -sf $(build-classpath fop-hyph) fop-hyph.jar
# jeuclid-core.jar
# xml-apis.jar
ln -sf $(build-classpath xml-commons-apis-ext) xml-apis-ext.jar
ln -sf $(build-classpath xmlgraphics-commons) xmlgraphics-commons.jar
popd
%build
export JAVA_HOME=/usr/lib/jvm/jdk-sun
ant compile-core compile-mathviewer compile-cli compile-fop -verbose
cd jeuclid-core16
export CLASSPATH=""
CLASSPATH=$CLASSPATH:$(build-classpath batik-all commons-logging commons-io):$JAVA_HOME/jre/lib/rt.jar
CLASSPATH=$CLASSPATH:$(build-classpath xml-commons-apis xml-commons-apis-ext xmlgraphics-commons)
CLASSPATH=$CLASSPATH:../target/jeuclid-core.jar
CLASSPATH=$CLASSPATH:$(build-classpath junit-3.8.2 testng-jdk15):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
-Dbuild.sysclasspath=first \
-Dmaven.test.skip=true \
jar
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -pm 644 target/jeuclid-core.jar \
%{buildroot}%{_javadir}/jeuclid-core-%{version}.jar
install -pm 644 jeuclid-core16/target/jeuclid-core16-%{version}.jar \
%{buildroot}%{_javadir}/jeuclid-core16-%{version}.jar
install -pm 644 target/jeuclid-fop.jar \
%{buildroot}%{_javadir}/jeuclid-fop-%{version}.jar
install -pm 644 target/jeuclid-mathviewer.jar \
%{buildroot}%{_javadir}/jeuclid-mathviewer-%{version}.jar
install -pm 644 target/jeuclid-cli.jar \
%{buildroot}%{_javadir}/jeuclid-cli-%{version}.jar
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}*; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
)
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install %{SOURCE2} --mode=644 --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/jeuclid-mathviewer.desktop
mkdir -p %{buildroot}%{_bindir}
install -pm 755 %{SOURCE3} %{buildroot}%{_bindir}/jeuclid-mathviewer
install -pm 755 %{SOURCE4} %{buildroot}%{_bindir}/jeuclid-cli
for png in 48x48 256x256 512x512; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${png}/apps/
install -pm 644 src/icons/jeuclid_${png}.png \
%{buildroot}%{_datadir}/icons/hicolor/${png}/apps/jeuclid.png
done
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
install -pm 644 src/icons/jeuclid.svg \
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post mathviewer
%{_bindir}/update-desktop-database -q %{_datadir}/applications
touch --no-create %{_datadir}/icons/hicolor
%postun mathviewer
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
fi
%posttrans mathviewer
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%files
%defattr(-,root,root)
%{_javadir}/jeuclid-core-%{version}.jar
%{_javadir}/jeuclid-core.jar
%{_javadir}/jeuclid-core16-%{version}.jar
%{_javadir}/jeuclid-core16.jar
%doc LICENSE.txt NOTICE README.*
%files cli
%defattr(-,root,root)
%{_bindir}/jeuclid-cli
%{_javadir}/jeuclid-cli-%{version}.jar
%{_javadir}/jeuclid-cli.jar
%files fop
%defattr(-,root,root)
%{_javadir}/jeuclid-fop-%{version}.jar
%{_javadir}/jeuclid-fop.jar
%files mathviewer
%defattr(-,root,root)
%{_bindir}/jeuclid-mathviewer
%{_javadir}/jeuclid-mathviewer-%{version}.jar
%{_javadir}/jeuclid-mathviewer.jar
%{_datadir}/applications/jeuclid-mathviewer.desktop
%{_datadir}/icons/hicolor/*x*/apps/jeuclid.png
%{_datadir}/icons/hicolor/scalable/apps/jeuclid.svg
%changelog
* Thu Dec 09 2010 gil <puntogil@libero.it> 3.1.9-2mamba
- rebuilt devel
* Fri Feb 26 2010 gil <puntogil@libero.it> 3.1.9-1mamba
- update to 3.1.9
- edit spec file added jeuclid-core16 jars
* Fri Nov 20 2009 gil <puntogil@libero.it> 3.1.8-1mamba
- package created by autospec
- added Italian translation

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=Jeuclid MathViewer
GenericName=Jeuclid MathViewer
Comment=View MathML files
Exec=jeuclid-mathviewer
Icon=jeuclid
Terminal=false
Type=Application
Categories=Graphics;Math;Education;Science;