Skip to content
Snippets Groups Projects
Commit 9f878728 authored by Thomas Oster's avatar Thomas Oster
Browse files

LAOS TFTP Port fix (Version 1.3)

parent 22a56c54
No related branches found
No related tags found
No related merge requests found
...@@ -20,10 +20,10 @@ is divided into following sections: ...@@ -20,10 +20,10 @@ is divided into following sections:
--> -->
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="LibLaserCut-impl"> <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="LibLaserCut-impl">
<fail message="Please build using Ant 1.7.1 or higher."> <fail message="Please build using Ant 1.8.0 or higher.">
<condition> <condition>
<not> <not>
<antversion atleast="1.7.1"/> <antversion atleast="1.8.0"/>
</not> </not>
</condition> </condition>
</fail> </fail>
...@@ -223,6 +223,7 @@ is divided into following sections: ...@@ -223,6 +223,7 @@ is divided into following sections:
<property name="javac.fork" value="${jdkBug6558476}"/> <property name="javac.fork" value="${jdkBug6558476}"/>
<property name="jar.index" value="false"/> <property name="jar.index" value="false"/>
<property name="jar.index.metainf" value="${jar.index}"/> <property name="jar.index.metainf" value="${jar.index}"/>
<property name="copylibs.rebase" value="true"/>
<available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
</target> </target>
<target name="-post-init"> <target name="-post-init">
...@@ -409,6 +410,7 @@ is divided into following sections: ...@@ -409,6 +410,7 @@ is divided into following sections:
<property environment="env"/> <property environment="env"/>
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
<java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/> <jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg line="${profiler.info.jvmargs}"/> <jvmarg line="${profiler.info.jvmargs}"/>
<env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
...@@ -539,7 +541,7 @@ is divided into following sections: ...@@ -539,7 +541,7 @@ is divided into following sections:
</chainedmapper> </chainedmapper>
</pathconvert> </pathconvert>
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
<copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
<fileset dir="${build.classes.dir}"/> <fileset dir="${build.classes.dir}"/>
<manifest> <manifest>
<attribute name="Class-Path" value="${jar.classpath}"/> <attribute name="Class-Path" value="${jar.classpath}"/>
...@@ -864,6 +866,14 @@ is divided into following sections: ...@@ -864,6 +866,14 @@ is divided into following sections:
--> -->
<target depends="init" if="have.sources" name="-javadoc-build"> <target depends="init" if="have.sources" name="-javadoc-build">
<mkdir dir="${dist.javadoc.dir}"/> <mkdir dir="${dist.javadoc.dir}"/>
<condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
<and>
<isset property="endorsed.classpath.cmd.line.arg"/>
<not>
<equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
</not>
</and>
</condition>
<javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
<classpath> <classpath>
<path path="${javac.classpath}"/> <path path="${javac.classpath}"/>
...@@ -875,6 +885,7 @@ is divided into following sections: ...@@ -875,6 +885,7 @@ is divided into following sections:
<include name="**/*.java"/> <include name="**/*.java"/>
<exclude name="*.java"/> <exclude name="*.java"/>
</fileset> </fileset>
<arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
</javadoc> </javadoc>
<copy todir="${dist.javadoc.dir}"> <copy todir="${dist.javadoc.dir}">
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
...@@ -1051,9 +1062,12 @@ is divided into following sections: ...@@ -1051,9 +1062,12 @@ is divided into following sections:
<target name="-check-call-dep"> <target name="-check-call-dep">
<property file="${call.built.properties}" prefix="already.built."/> <property file="${call.built.properties}" prefix="already.built."/>
<condition property="should.call.dep"> <condition property="should.call.dep">
<not> <and>
<isset property="already.built.${call.subproject}"/> <not>
</not> <isset property="already.built.${call.subproject}"/>
</not>
<available file="${call.script}"/>
</and>
</condition> </condition>
</target> </target>
<target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
......
...@@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.44.1.45 ...@@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.44.1.45
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=25a416f2 nbproject/build-impl.xml.data.CRC32=25a416f2
nbproject/build-impl.xml.script.CRC32=d94e4f4d nbproject/build-impl.xml.script.CRC32=9b592fbc
nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45 nbproject/build-impl.xml.stylesheet.CRC32=8cfa0561@1.51.0.46
...@@ -29,7 +29,7 @@ import com.t_oster.liblasercut.drivers.LaosCutter; ...@@ -29,7 +29,7 @@ import com.t_oster.liblasercut.drivers.LaosCutter;
*/ */
public class LibInfo public class LibInfo
{ {
private static String VERSION = "1.2"; private static String VERSION = "1.3";
public static String getVersion() public static String getVersion()
{ {
......
...@@ -569,10 +569,13 @@ public class LaosCutter extends LaserCutter ...@@ -569,10 +569,13 @@ public class LaosCutter extends LaserCutter
pl.taskChanged(this, "connecting"); pl.taskChanged(this, "connecting");
TFTPClient tftp = new TFTPClient(); TFTPClient tftp = new TFTPClient();
tftp.setDefaultTimeout(60000); tftp.setDefaultTimeout(60000);
tftp.open(this.getPort()); //open a local UDP socket
tftp.open();
pl.taskChanged(this, "sending"); pl.taskChanged(this, "sending");
tftp.sendFile(job.getName()+".lgc", TFTP.OCTET_MODE, new ByteArrayInputStream(buffer.toByteArray()), this.getHostname()); ByteArrayInputStream bain = new ByteArrayInputStream(buffer.toByteArray());
tftp.sendFile(job.getName()+".lgc", TFTP.BINARY_MODE, bain, this.getHostname(), this.getPort());
tftp.close(); tftp.close();
bain.close();
pl.taskChanged(this, "sent."); pl.taskChanged(this, "sent.");
} }
pl.progressChanged(this, 100); pl.progressChanged(this, 100);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment