udate ant build task

This commit is contained in:
Stéphane Godin 2018-12-04 21:15:20 +01:00
parent 2ef9ac3b4b
commit aa13c877e7
12 changed files with 20 additions and 40 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ NatBrailleTools/BrailleLogger/bin/Braille2GcodeEncoder.class
NatBrailleTools/BrailleLogger/bin/Braille6GcodeEncoding.class NatBrailleTools/BrailleLogger/bin/Braille6GcodeEncoding.class
NatBrailleTools/BrailleLogger/bin/BrailleLogger.class NatBrailleTools/BrailleLogger/bin/BrailleLogger.class
NatBrailleTools/BrailleLogger/bin/GCodeGenerator.class NatBrailleTools/BrailleLogger/bin/GCodeGenerator.class
NatBrailleTools.zip

View File

@ -5,9 +5,9 @@
<!--define folder properties--> <!--define folder properties-->
<property name="dir.buildfile" value="."/> <property name="dir.buildfile" value="."/>
<property name="dir.workspace" value="D:/Users/Stephane/eclipse-workspace"/> <property name="dir.workspace" value="D:/Users/Stephane/eclipse-workspace"/>
<property name="dir.jarfile" value="I:/home/3d/braillerapsp.github/BrailleRapSP/NatBrailleTools/bin"/> <property name="dir.jarfile" value="../../bin"/>
<target name="create_run_jar"> <target name="create_run_jar">
<jar destfile="${dir.jarfile}/braillelogger.jar"> <jar destfile="${dir.jarfile}/BrailleLogger.jar">
<manifest> <manifest>
<attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/> <attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/>
<attribute name="Rsrc-Main-Class" value="BrailleLogger"/> <attribute name="Rsrc-Main-Class" value="BrailleLogger"/>
@ -15,7 +15,7 @@
<attribute name="Rsrc-Class-Path" value="./"/> <attribute name="Rsrc-Class-Path" value="./"/>
</manifest> </manifest>
<zipfileset src="jar-in-jar-loader.zip"/> <zipfileset src="jar-in-jar-loader.zip"/>
<fileset dir="I:/home/3d/braillerapsp.github/BrailleRapSP/NatBrailleTools/BrailleLogger/bin"/> <fileset dir="../bin"/>
</jar> </jar>
</target> </target>
</project> </project>

View File

@ -0,0 +1,4 @@
/Braille2GcodeEncoder.java.bak
/BrailleLogger.java.bak
/BrailleGcodeDot.class
/BrailleGcodeEncoding.class

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project BrailleLogger with Jar-in-Jar Loader">
<!--this file was created by Eclipse Runnable JAR file Export Wizard-->
<!--ANT 1.7 is required-->
<!--define folder properties-->
<property name="dir.buildfile" value="."/>
<property name="dir.workspace" value="D:/Users/Stephane/eclipse-workspace"/>
<property name="dir.jarfile" value="I:/home/3d/braillerapsp.github/BrailleRapSP/NatBrailleTools/bin"/>
<target name="create_run_jar">
<jar destfile="${dir.jarfile}/braillelogger.jar">
<manifest>
<attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/>
<attribute name="Rsrc-Main-Class" value="BrailleLogger"/>
<attribute name="Class-Path" value="."/>
<attribute name="Rsrc-Class-Path" value="./"/>
</manifest>
<zipfileset src="jar-in-jar-loader.zip"/>
<fileset dir="${dir.buildfile}"/>
</jar>
</target>
</project>

View File

@ -9,7 +9,7 @@ import javax.swing.JOptionPane;
*/ */
/** /**
* Braille encoder class * Braille encoder class
* *
* @author crocsg * @author crocsg
* *
@ -70,9 +70,7 @@ public class Braille2GcodeEncoder {
this.encoder = encoder; this.encoder = encoder;
} }
/**
* Start a new page
*/
public void startPage () public void startPage ()
{ {
pagedot = new ArrayList <Point2D.Float> (); pagedot = new ArrayList <Point2D.Float> ();
@ -166,7 +164,7 @@ public class Braille2GcodeEncoder {
{ {
this.position_y += Braille_line_padding; this.position_y += Braille_line_padding;
} }
/** /**
* End Braille characters line * End Braille characters line
@ -207,7 +205,7 @@ public class Braille2GcodeEncoder {
* Add a character in page buffer to encode in Braille * Add a character in page buffer to encode in Braille
* @param a character to add * @param a character to add
*/ */
private void addCharToBuffer (char a) private void addCharToBuffer (char a)
{ {
bufline += a; bufline += a;
} }

View File

@ -4,7 +4,7 @@ import java.util.ArrayList;
/** /**
* *
*/ */
/** /**
* @author lenovo * @author lenovo
* *

View File

@ -1,4 +1,4 @@
/** /**
* *

View File

@ -4,7 +4,7 @@ import java.util.ArrayList;
/** /**
* *
*/ */
/** /**
* @author lenovo * @author lenovo
* *

View File

@ -14,12 +14,12 @@ import java.util.ArrayList;
*/ */
public class BrailleLogger { public class BrailleLogger {
ArrayList <Point2D.Float> braillepoints = new ArrayList <Point2D.Float>(); ArrayList <Point2D.Float> braillepoints = new ArrayList <Point2D.Float>();
/** /**
* @param args * @param args
*/ */
public static void main(String[] args) { public static void main(String[] args) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
System.out.println ("; BrailleRapSP GCODE generator"); System.out.println ("; BrailleRapSP GCODE generator");
int arg = 0; int arg = 0;
@ -57,9 +57,7 @@ public class BrailleLogger {
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
System.out.println("File not found:" + args[0]); e.printStackTrace();
System.out.println(e.getMessage());
//e.printStackTrace();
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block

View File

@ -2,14 +2,14 @@ import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols; import java.text.DecimalFormatSymbols;
/** /**
* *
*/ */
/** /**
* @author lenovo * @author lenovo
* *
*/ */
public class GCodeGenerator { public class GCodeGenerator {
public String Home () public String Home ()