alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0" encoding="UTF-8"?>
<project name="DojoBuild" default="build-dojo" basedir=".">
	
	<target name="init">
		<property name="projectName" value=""/>
		<!-- gwt.xml filename, including full package name ex. org.eclipse.swt.myfile -->
		<property name="gwt.xml.fileName" value=""/>
		<path id="source.path">
			<!-- Source + Bin from your project -->
			<pathelement path="src"/>
			<pathelement path="bin"/>
		
			<!-- SWT Dojo Specific libraries -->
			<pathelement path="../org.eclipse.swt.e4/Eclipse SWT JCL"/>
			<pathelement path="../org.eclipse.swt.e4/Eclipse SWT/dojo"/>
			<pathelement path="../org.eclipse.swt.e4/Eclipse SWT PI/dojo"/>
			
			<!-- SWT Common libraries -->
			<pathelement path="../org.eclipse.swt/Eclipse SWT/common"/>
			<pathelement path="../org.eclipse.swt/Eclipse SWT/common_j2me"/>
			<pathelement path="../org.eclipse.swt/Eclipse SWT Accessibility/common"/>
			<pathelement path="../org.eclipse.swt/Eclipse SWT Accessibility/emulated"/>
			<pathelement path="../org.eclipse.swt/Eclipse SWT Browser/common"/>
			<pathelement path="../org.eclipse.swt/Eclipse SWT PI/common"/>	
			<pathelement path="../org.eclipse.swt/Eclipse SWT PI/common_j2me"/>	
			<pathelement path="../org.eclipse.swt/Eclipse SWT/emulated/ime"/>
			
			<!-- GWT libraries + Dojo Libraries -->
			<pathelement path="../DojoResources"/>
			<pathelement path="../DojoResources/gwt/gwt-user.jar"/>
			<pathelement path="../DojoResources/gwt/gwt-dev-linux.jar"/>
			
		</path>
	</target>

	<target name="build-dojo" depends="init">
		<!--
		<tstamp prefix="startBuild"/>
		<record name="${basedir}/Win_${startBuild.DSTAMP}_${startBuild.TSTAMP}_log.txt" action="start" />
		-->
	    <!--delete dir="www"/-->
		<java dir="." classname="com.google.gwt.dev.GWTCompiler" fork="true">
			<classpath refid="source.path"/>
			<arg value="-style"/>
			<arg value="pretty"/>
			<arg value="-out"/>
			<arg value="www"/>
			<arg value="${gwt.xml.fileName}"/>
		</java>
		<eclipse.refreshLocal resource="${projectName}" depth="infinite"/>
		<!--
		<record name="${basedir}/Win_${startBuild.DSTAMP}_${startBuild.TSTAMP}_log.txt" action="stop" />
		-->
	</target>

</project>
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.