Revision: 15098
http://gate.svn.sourceforge.net/gate/?rev=15098&view=rev
Author: valyt
Date: 2012-01-17 10:31:17 +0000 (Tue, 17 Jan 2012)
Log Message:
-----------
Fix for the build file to include the required data files in the built jar.
Made guk.jar executable (starts the GUK Editor)
Documented how to start the GUK editor in the right configuration.
Modified Paths:
--------------
guk/trunk/build.xml
guk/trunk/doc/readme.txt
guk/trunk/guk.jar
guk/trunk/src/guk/Editor.java
Modified: guk/trunk/build.xml
===================================================================
--- guk/trunk/build.xml 2012-01-17 10:06:42 UTC (rev 15097)
+++ guk/trunk/build.xml 2012-01-17 10:31:17 UTC (rev 15098)
@@ -8,45 +8,42 @@
<property name="javadoc.dir" location="${doc.dir}/javadoc" />
<property name="jar.location" location="guk.jar" />
- <!-- create build directory structure -->
- <target name="prepare">
- <mkdir dir="${classes.dir}" />
- </target>
-
<!-- compile the source -->
- <target name="compile" depends="prepare">
- <javac classpathref="compile.classpath"
- srcdir="${src.dir}"
- destdir="${classes.dir}"
+ <target name="compile">
+ <mkdir dir="${classes.dir}" />
+ <javac destdir="${classes.dir}"
+ includes="guk/**"
+ encoding="UTF-8"
debug="true"
debuglevel="lines,source"
- encoding="UTF-8"
- source="1.5" target="1.5" />
+ source="1.5"
+ target="1.5"
+ srcdir="${src.dir}"/>
</target>
<!-- create the JAR file -->
<target name="jar" depends="compile" >
<jar destfile="${jar.location}"
update="false"
- basedir="${classes.dir}" />
+ index="true">
+ <fileset dir="${classes.dir}"
+ includes="guk/**"/>
+ <fileset dir="${src.dir}/guk/resources"/>
+ <manifest>
+ <attribute name="Main-Class" value="guk.Editor" />
+ <attribute name="Extension-Name" value="gate.GUK" />
+ </manifest>
+ </jar>
</target>
- <!-- remove the generated .class files -->
- <target name="clean.classes" >
- <delete dir="${classes.dir}" />
- </target>
-
<!-- Clean up - remove .class and .jar files -->
- <target name="clean" depends="clean.classes" >
+ <target name="clean">
+ <delete dir="${classes.dir}" />
<delete file="${jar.location}" />
</target>
- <!-- Build JavaDoc documentation -->
- <target name="doc.prepare">
- <mkdir dir="${javadoc.dir}" />
- </target>
-
- <target name="javadoc" depends="doc.prepare">
+ <target name="javadoc">
+ <mkdir dir="${javadoc.dir}" />
<javadoc destdir="${javadoc.dir}" packagenames="*"
encoding="UTF-8"
windowtitle="${plugin.name} JavaDoc"
Modified: guk/trunk/doc/readme.txt
===================================================================
--- guk/trunk/doc/readme.txt 2012-01-17 10:06:42 UTC (rev 15097)
+++ guk/trunk/doc/readme.txt 2012-01-17 10:31:17 UTC (rev 15098)
@@ -19,4 +19,9 @@
For information about activating input methods in Java, see this document:
http://javadesktop.org/articles/InputMethod/index.html.
-
\ No newline at end of file
+
+GUK includes a very simple text editor which can be used to test the provided
+input methods. To start it perform the following steps:
+- change to a directory containing the guk.jar file and, optionally, also
+ the nl.mpi.lookup.jar file.
+- execute the following command: java -Djava.ext.dirs=. -jar guk.jar
\ No newline at end of file
Modified: guk/trunk/guk.jar
===================================================================
(Binary files differ)
Modified: guk/trunk/src/guk/Editor.java
===================================================================
--- guk/trunk/src/guk/Editor.java 2012-01-17 10:06:42 UTC (rev 15097)
+++ guk/trunk/src/guk/Editor.java 2012-01-17 10:31:17 UTC (rev 15098)
@@ -102,7 +102,7 @@
private void jbInit() throws Exception {
this.setIconImage(Toolkit.getDefaultToolkit().getImage(
guk.Editor.class.getResource("img/gateIcon.gif")));
- java.util.List installedLocales = new ArrayList();
+ java.util.List<Locale> installedLocales = new ArrayList<Locale>();
try{
//if this fails guk is not present
Class.forName("guk.im.GateIMDescriptor");
@@ -118,9 +118,9 @@
//if this fails mpi IM is not present
Class theClass = Class.forName(
"mpi.alt.java.awt.im.spi.lookup.LookupDescriptor");
- installedLocales.addAll(Arrays.asList(
- theClass.getMethod("getAvailableLocales", null).invoke(
- theClass.newInstance(), new Object[]{})));
+ Locale[] locs = (Locale[])theClass.getMethod("getAvailableLocales",
+ (Class[])null).invoke(theClass.newInstance(), null);
+ installedLocales.addAll(Arrays.asList(locs));
}catch(Exception e){
//something happened; most probably MPI not present.
//just drop it, is not vital.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs