| 
What this is
 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="org.eclipse.swt.e4.examples"/>
		<property name="eclipse.workspace" value="../.."/>
		<property name="dojoResources" value="DojoResources"/>
		<!-- gwt.xml filename, including full package name ex. org.eclipse.swt.myfile -->
		<property name="outputDir" value="bin/www"/>
		<property name="gwt.xml.fileName" value="controlexample"/>
		
		<path id="source.path">
			<!-- Source + Bin from your project -->
			<pathelement path="../dojo/controlexample"/>
		
			<!-- SWT Dojo Specific libraries -->
			<pathelement path="${eclipse.workspace}/org.eclipse.swt.e4/Eclipse SWT JCL"/>
			<pathelement path="${eclipse.workspace}/org.eclipse.swt.e4/Eclipse SWT/dojo"/>
			<pathelement path="${eclipse.workspace}/org.eclipse.swt.e4/Eclipse SWT PI/dojo"/>
			
			<!-- SWT Common libraries -->
			<pathelement path="${eclipse.workspace}/org.eclipse.swt/Eclipse SWT/common"/>
			<pathelement path="${eclipse.workspace}/org.eclipse.swt/Eclipse SWT/common_j2me"/>
			<pathelement path="${eclipse.workspace}/org.eclipse.swt/Eclipse SWT Accessibility/common"/>
			<pathelement path="${eclipse.workspace}/org.eclipse.swt/Eclipse SWT Accessibility/emulated"/>
			<pathelement path="${eclipse.workspace}/org.eclipse.swt/Eclipse SWT Browser/common"/>
			<pathelement path="${eclipse.workspace}/org.eclipse.swt/Eclipse SWT PI/common"/>	
			<pathelement path="${eclipse.workspace}/org.eclipse.swt/Eclipse SWT PI/common_j2me"/>	
			<pathelement path="${eclipse.workspace}/org.eclipse.swt/Eclipse SWT/emulated/ime"/>
			
			<!-- GWT libraries + Dojo Libraries -->
			<pathelement path="${eclipse.workspace}/${dojoResources}"/>
			<pathelement path="${eclipse.workspace}/${dojoResources}/gwt/gwt-user.jar"/>
			<pathelement path="${eclipse.workspace}/${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="${outputDir}"/>
			<arg value="${gwt.xml.fileName}"/>
		</java>
		<!--delete>
			<fileset dir="${outputDir}/${gwt.xml.fileName}" includes="
				${gwt.xml.fileName}-xs.nocache.js,
				*.cache.js,
				*.cache.xml,
				clear.cache.gif,
				gwt.js,
				history.html,
				hosted.html
			"/>
		</delete-->
		<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  | 
  
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.