JavaProgramming

From DigitalBlacksmith

Jump to: navigation, search

[edit] Making an ANY Builder

Reference

Tried this, using John's build.xml file:

<?xml version="1.0"?>

<project name="Project222" default="compile" basedir=".">

<!-- set global properties for this build -->
<property name="build" value="./classes" />
<property name="src" value="./src" />

<!-- compiler -->
<!-- <property name="build.compiler" value="jikes" /> -->

<target name="init">
	<!-- Create the time stamp -->
	<tstamp/>
	<mkdir dir="${build}" />
</target>

<target name="compile" depends="init">
	<!-- Compile the java code from ${src} into ${build} -->
	<javac srcdir="${src}" destdir="${build}" />
</target>

<target name="run" depends="compile">
	<java classname="ui.GUI" fork="yes">
		<classpath>
			<pathelement path="${build}" />
			<pathelement path="${src}/orbital-core.jar" />
			<pathelement path="${src}/orbital-ext.jar" />
		</classpath>
	</java>
</target>

<target name="clean">
	<!-- Clean compiled crap -->
	<delete dir="${build}" />
	<delete file="software.tar.gz" />
</target>

<target name="archive" depends="clean">
	<!-- Archive the Clean Code -->
	<tar tarfile="paths.tar.gz" compression="gzip" basedir="." />
</target>

</project>

Tried to compile..missing some libraries.

I added these via the any configuration dialog.

Can't seem to get eclipse to add the builder to the Project menu





[edit] Named Pipes in Java

http://www.velocityreviews.com/forums/t361065-how-to-write-to-a-named-pipe.html

How to tell if a Java file is a NP

An example

perhaps JNI is the way to go because the directory convention is going to kill you.

Personal tools