<?xml version="1.0"?>
<!-- ====================================================================== 
     2006-1-15 23:45:36                                                        

     Packing necessary *.js for net.sf.j2s.lib
                   
     josson smith
     ====================================================================== -->
<project name="j2s.core.build" default="j2s.pack.lib">
    <description>
            Building j2s-core-*.z.js
    </description>
	
	<property name="workspace.base" value="${basedir}/../.."/>
	
	<property name="j2s.core.project" value="${workspace.base}/net.sf.j2s.java.core"/>
	<property name="j2s.ajax.project" value="${workspace.base}/net.sf.j2s.ajax"/>
	<property name="j2s.swt.project" value="${workspace.base}/net.sf.j2s.java.org.eclipse.swt"/>
	<property name="j2s.junit.project" value="${workspace.base}/net.sf.j2s.java.junit"/>
		
	<property name="j2s.lib.project" value="${workspace.base}/net.sf.j2s.lib"/>
	
	<property name="j2s.core.bin" value="${j2s.core.project}/bin"/>
	<property name="j2s.ajax.bin" value="${j2s.ajax.project}/bin"/>
	<property name="j2s.swt.bin" value="${j2s.swt.project}/bin"/>
	<property name="j2s.junit.bin" value="${j2s.junit.project}/bin"/>
	
	<property name="j2s.lib.dist" value="${j2s.lib.project}/j2slib"/>
	
	<property name="j2s.core.src" value="${j2s.core.project}/src"/>

	<!-- - - - - - - - - - - - - - - - - - 
          target: j2s.pack.core                      
         - - - - - - - - - - - - - - - - - -->
    <target name="j2s.pack.core">
    	<!-- This SmartJSCompressor will pack Class.js and ClassExt.js together -->
        <java classname="net.sf.j2s.lib.build.SmartJSCompressor">
    		<arg value="${j2s.core.src}/java/lang/Class.js"/>
        	<arg value="${j2s.core.bin}/java/lang/Class.js"/>
        	
    		<arg value="no.debug.support=false"/>
    		<arg value="no.javascript.support=true"/>
    		<arg value="link.compress=true"/>

        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
       	</java>

        <java classname="net.sf.j2s.lib.build.SmartJSCompressor">
    		<arg value="${j2s.core.src}/java/lang/ClassLoader.js"/>
   			<arg value="${j2s.core.bin}/java/lang/ClassLoader.js"/>
        	
    		<arg value="clazz.existed=true"/>
    		<arg value="no.clazzloader.mode=true"/>
    		<arg value="link.compress=true"/>

        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
       	</java>

        <java classname="net.sf.j2s.lib.build.SmartJSCompressor">
    		<arg value="${j2s.core.src}/java/lang/ClassLoaderProgressMonitor.js"/>
   			<arg value="${j2s.core.bin}/java/lang/ClassLoaderProgressMonitor.js"/>
        	
    		<arg value="clazz.existed=true"/>
    		<arg value="no.clazzloader.mode=true"/>
    		<arg value="link.compress=true"/>

        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
       	</java>
    	
        <java classname="net.sf.j2s.lib.build.SmartJSCompressor">
    		<arg value="${j2s.core.bin}/java/lang/Console.js"/>
    		<arg value="${j2s.core.bin}/java/lang/Console.js"/>
        	
    		<arg value="no.window.support=false"/>
    		<arg value="no.system.support=false"/>
    		<arg value="link.compress=true"/>

        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
       	</java>
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.lib.dist}/j2slib.z.js"/>
        	
        	<arg value="${j2s.core.bin}"/>
        	
    		<arg value="java/lang/Class.js"/>
    		<arg value="java/lang/ClassLoader.js"/>
    		<arg value="java/lang/ClassLoaderProgressMonitor.js"/>
    		<arg value="java/lang/Console.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>
    	
    	<!-- j2slibcore.z.js does not contains Console -->
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.lib.dist}/j2slibcore.z.js"/>
        	
        	<arg value="${j2s.core.bin}"/>
        	
    		<arg value="java/lang/Class.js"/>
    		<arg value="java/lang/ClassLoader.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: j2s.pack.error                      
         - - - - - - - - - - - - - - - - - -->
    <target name="j2s.pack.error">
        <java classname="net.sf.j2s.lib.build.J2SConcat">
        	<arg value="false"/>
        	<arg value="${j2s.core.bin}/java/error.z.js"/>
        	
        	<arg value="${j2s.core.bin}"/>

    		<arg value="java/lang/Throwable.js"/>
    		<arg value="java/lang/StackTraceElement.js"/>
        	
    		<arg value="java/lang/Error.js"/>
        	<arg value="java/lang/LinkageError.js"/>
        	<arg value="java/lang/IncompatibleClassChangeError.js"/>
        	<arg value="java/lang/AbstractMethodError.js"/>
        	<arg value="java/lang/AssertionError.js"/>
        	<arg value="java/lang/ClassCircularityError.js"/>
        	<arg value="java/lang/ClassFormatError.js"/>
        	<arg value="java/lang/ExceptionInInitializerError.js"/>
        	<arg value="java/lang/IllegalAccessError.js"/>
        	<arg value="java/lang/InstantiationError.js"/>
        	<arg value="java/lang/VirtualMachineError.js"/>
        	<arg value="java/lang/InternalError.js"/>
        	<arg value="java/lang/NoClassDefFoundError.js"/>
        	<arg value="java/lang/NoSuchFieldError.js"/>
        	<arg value="java/lang/NoSuchMethodError.js"/>
        	<arg value="java/lang/OutOfMemoryError.js"/>
        	<arg value="java/lang/StackOverflowError.js"/>
        	<arg value="java/lang/UnknownError.js"/>
        	<arg value="java/lang/UnsatisfiedLinkError.js"/>
        	<arg value="java/lang/UnsupportedClassVersionError.js"/>
        	<arg value="java/lang/VerifyError.js"/>
        	<arg value="java/lang/ThreadDeath.js"/>

    		<arg value="java/lang/Exception.js"/>
        	<arg value="java/lang/RuntimeException.js"/>
        	<arg value="java/lang/ArithmeticException.js"/>
        	<arg value="java/lang/IndexOutOfBoundsException.js"/>
        	<arg value="java/lang/ArrayIndexOutOfBoundsException.js"/>
        	<arg value="java/lang/ArrayStoreException.js"/>
        	<arg value="java/lang/ClassCastException.js"/>
        	<arg value="java/lang/ClassNotFoundException.js"/>
        	<arg value="java/lang/CloneNotSupportedException.js"/>
        	<arg value="java/lang/IllegalAccessException.js"/>
        	<arg value="java/lang/IllegalArgumentException.js"/>
        	<arg value="java/lang/IllegalMonitorStateException.js"/>
        	<arg value="java/lang/IllegalStateException.js"/>
        	<arg value="java/lang/IllegalThreadStateException.js"/>
        	<arg value="java/lang/InstantiationException.js"/>
        	<arg value="java/lang/InterruptedException.js"/>
        	<arg value="java/lang/NegativeArraySizeException.js"/>
        	<arg value="java/lang/NoSuchFieldException.js"/>
        	<arg value="java/lang/NoSuchMethodException.js"/>
        	<arg value="java/lang/NullPointerException.js"/>
        	<arg value="java/lang/NumberFormatException.js"/>
        	<arg value="java/lang/SecurityException.js"/>
        	<arg value="java/lang/StringIndexOutOfBoundsException.js"/>
        	<arg value="java/lang/UnsupportedOperationException.js"/>

        	<arg value="java/lang/reflect/InvocationTargetException.js"/>
        	<arg value="java/lang/reflect/UndeclaredThrowableException.js"/>

        	<arg value="java/io/IOException.js"/>
        	<arg value="java/io/CharConversionException.js"/>
        	<arg value="java/io/EOFException.js"/>
        	<arg value="java/io/FileNotFoundException.js"/>
        	<arg value="java/io/InterruptedIOException.js"/>
        	<arg value="java/io/ObjectStreamException.js"/>
        	<arg value="java/io/InvalidClassException.js"/>
        	<arg value="java/io/InvalidObjectException.js"/>
        	<arg value="java/io/NotActiveException.js"/>
        	<arg value="java/io/NotSerializableException.js"/>
        	<arg value="java/io/OptionalDataException.js"/>
        	<arg value="java/io/StreamCorruptedException.js"/>
        	<arg value="java/io/SyncFailedException.js"/>
        	<arg value="java/io/UnsupportedEncodingException.js"/>
        	<arg value="java/io/UTFDataFormatException.js"/>
        	<arg value="java/io/WriteAbortedException.js"/>

        	<arg value="java/util/ConcurrentModificationException.js"/>
        	<arg value="java/util/EmptyStackException.js"/>
        	<arg value="java/util/MissingResourceException.js"/>
        	<arg value="java/util/NoSuchElementException.js"/>
        	<arg value="java/util/TooManyListenersException.js"/>

        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
        </java>
    </target>
	<!-- - - - - - - - - - - - - - - - - - 
          target: j2s.pack.common                      
         - - - - - - - - - - - - - - - - - -->
    <target name="j2s.pack.common" depends="j2s.pack.prepare">
        <java classname="net.sf.j2s.lib.build.J2SConcat">
        	<arg value="false"/>
        	<arg value="${j2s.core.bin}/java/core.z.js"/>
        	
        	<arg value="${j2s.core.bin}"/>

        	<!-- Already defined in Class.js
    		<arg value="java/io/Serializable.js"/>
    		<arg value="java/lang/CharSequence.js"/>
    		<arg value="java/lang/Cloneable.js"/>
    		<arg value="java/lang/Comparable.js"/>
    		<arg value="java/lang/Runnable.js"/>
    		<arg value="java/util/Comparator.js"/>
    		-->
    		
    		<arg value="java/lang/Number.js"/>
    		<arg value="java/lang/Integer.js"/>
    		<arg value="java/lang/Long.js"/>
    		<arg value="java/lang/Float.js"/>
    		<arg value="java/lang/Double.js"/>
    		<arg value="java/lang/Boolean.js"/>
    		
    		<arg value="java/lang/Encoding.js"/>
    		<arg value="java/lang/String.js"/>
        	
    		<arg value="java/lang/Character.js"/>
        	
    		<arg value="java/lang/reflect/Array.js"/>
    			
    		<arg value="java/util/Date.js"/>
    		
    		<arg value="java/util/EventObject.js"/>
    		<arg value="java/util/EventListener.js"/>
    		<arg value="java/util/EventListenerProxy.js"/>
    		
    		<arg value="java/util/Iterator.js"/>
    		<arg value="java/util/ListIterator.js"/>
    		<arg value="java/util/Enumeration.js"/>
    		<arg value="java/util/Collection.js"/>
    		<arg value="java/util/Set.js"/>
    		<arg value="java/util/Map.js"/>
    		<arg value="java/util/List.js"/>
    		<arg value="java/util/RandomAccess.js"/>
        	
    		<arg value="java/net/URLEncoder.js"/>
    		<arg value="java/net/URLDecoder.js"/>

    		<arg value="net/sf/j2s/ajax/HttpRequest.js"/>
    		<arg value="net/sf/j2s/ajax/IXHRCallback.js"/>
    		<arg value="net/sf/j2s/ajax/XHRCallbackAdapter.js"/>
    		<arg value="net/sf/j2s/ajax/XHRCallbackSWTAdapter.js"/>
    		<arg value="net/sf/j2s/ajax/ARunnable.js"/>
    		<arg value="net/sf/j2s/ajax/AClass.js"/>
    		<arg value="net/sf/j2s/ajax/ASWTClass.js"/>
        	
    		<arg value="net/sf/j2s/ajax/SimpleSerializable.js"/>
    		<arg value="net/sf/j2s/ajax/SimpleRPCRunnable.js"/>
    		<arg value="net/sf/j2s/ajax/SimpleRPCRequest.js"/>
    		<arg value="net/sf/j2s/ajax/SimpleRPCSWTRequest.js"/>
        	
        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
        </java>
    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.core.bin}/org/apache/harmony/luni/util/Msg.z.js"/>
        	<arg value="${j2s.core.bin}"/>
        		<arg value="org/apache/harmony/luni/util/Msg.js"/>
        		<arg value="org/apache/harmony/luni/util/MsgHelp.js"/>
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.core.bin}/java/lang/StringBuilder.z.js"/>
        	<arg value="${j2s.core.bin}"/>
        		<arg value="java/lang/AbstractStringBuilder.js"/>
        		<arg value="java/lang/StringBuilder.js"/>
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: j2s.pack.lib                      
         - - - - - - - - - - - - - - - - - -->
    <target name="j2s.pack.lib" depends="j2s.pack.core,j2s.pack.common,j2s.pack.error,pack.java.reflect,j2s.pack.swt">
    	<copy file="${j2s.lib.dist}/../.htaccess" todir="${j2s.lib.dist}"/>
    	<copy todir="${j2s.lib.dist}">
    		<fileset dir="${j2s.ajax.bin}">
    			<exclude name="**/*.clazz"/>
    			<exclude name="**/*.class"/>
    			<exclude name="**/AjaxPlugin.js"/>
    			<exclude name="**/AJAXVariableInitializer.js"/>
    			<exclude name="**/Base64.js"/>
    			<exclude name="**/SimpleRPCHttpServlet.js"/>
    			<exclude name="**/*.swp"/>
    			<exclude name="**/*.swo"/>
    		</fileset>
    		<fileset dir="${j2s.core.bin}">
    			<exclude name="**/*.clazz"/>
    			<exclude name="**/*.class"/>
    			<exclude name="**/*.swp"/>
    			<exclude name="**/*.swo"/>
    		</fileset>
    		<fileset dir="${j2s.swt.bin}">
    			<exclude name="org/eclipse/swt/internal/xhtml/**"/>
    			<exclude name="**/*.clazz"/>
    			<exclude name="**/*.class"/>
    			<exclude name="**/*.swp"/>
    			<exclude name="**/*.swo"/>
    		</fileset>
    		<fileset dir="${j2s.junit.bin}">
    			<exclude name="**/*.clazz"/>
    			<exclude name="**/*.class"/>
    			<exclude name="**/*.swp"/>
    			<exclude name="**/*.swo"/>
    		</fileset>
    	</copy>
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: j2s.pack.zip                      
         - - - - - - - - - - - - - - - - - -->
    <target name="j2s.pack.zip" depends="j2s.pack.lib">
    	<zip destfile="${j2s.lib.project}/j2slib.zip">
    		<fileset dir="${j2s.lib.project}">
    			<include name="j2slib/**"/>
    			<exclude name="**/*.zip"/>
    			<exclude name="**/*.swp"/>
    			<exclude name="**/*.swo"/>
    			<exclude name="**/*.tmp"/>
    			<exclude name="**/*.svn"/>
    		</fileset>
    	</zip>
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: j2s.unzip                      
         - - - - - - - - - - - - - - - - - -->
    <target name="j2s.unzip">
    	<unzip dest="${j2s.lib.project}" src="${j2s.lib.project}/j2slib.zip"></unzip>
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: j2s.pack.prepare                     
         - - - - - - - - - - - - - - - - - -->
    <target name="j2s.pack.prepare" depends="j2s.pack.core">
    	<mkdir dir="${j2s.lib.dist}"/>
    	
    	<delete file="${j2s.ajax.bin}/net/sf/j2s/ajax/HttpRequest.js" quiet="true"/>
        	
        <java classname="net.sf.j2s.lib.build.RegExCompress">
        	<arg value="false"/>

    		<arg value="${j2s.ajax.project}/j2sajax/HttpRequest.js"/>
    		<arg value="${j2s.ajax.bin}/net/sf/j2s/ajax/HttpRequest.js"/>

        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
        </java>
    	
    	<copy todir="${j2s.core.bin}">
    		<fileset dir="${j2s.ajax.bin}">
    			<exclude name="**/*.clazz"/>
    			<exclude name="**/*.class"/>
    			<exclude name="**/AjaxPlugin.js"/>
    			<exclude name="**/AJAXVariableInitializer.js"/>
    			<exclude name="**/*.swp"/>
    			<exclude name="**/*.swo"/>
    		</fileset>
    	</copy>
    </target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: j2s.pack.swt                      
         - - - - - - - - - - - - - - - - - -->
    <target name="j2s.pack.swt" depends="pack.swt.basic,pack.swt.css,pack.swt.more,pack.swt.event,pack.swt.shell">
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: pack.swt.css                     
         - - - - - - - - - - - - - - - - - -->
    <target name="pack.swt.css">
        <java classname="net.sf.j2s.lib.build.PackCSSIntoJS">
        	<arg value="${j2s.swt.bin}/"/>
        	
        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
        </java>
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: pack.swt.widgets.css                     
         - - - - - - - - - - - - - - - - - -->
    <target name="pack.swt.widgets.css">
        <concat destfile="${j2s.swt.bin}/org/eclipse/swt/widgets/package.css">
        	<fileset dir="${j2s.swt.bin}/org/eclipse/swt/widgets/">
        	    <include name="*.css"/>
        	</fileset>
        </concat>
	</target>

    <!-- ================================= 
          target: pack.java.reflect              
         ================================= -->
    <target name="pack.java.reflect" description="Building j2s-swt-*.z.js">
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.core.bin}/java/lang/reflect.z.js"/>
        	<arg value="${j2s.core.bin}"/>
        		<arg value="java/lang/Void.js"/>
        		<!--
        		<arg value="java/lang/reflect/Array.js"/>
        		-->
				<arg value="java/lang/reflect/GenericDeclaration.js"/>
				<arg value="java/lang/reflect/AnnotatedElement.js"/>
				<arg value="java/lang/reflect/AccessibleObject.js"/>
				<arg value="java/lang/reflect/InvocationHandler.js"/>
				<arg value="java/lang/reflect/Member.js"/>
        		<arg value="java/lang/reflect/Modifier.js"/>
				<arg value="java/lang/reflect/Constructor.js"/>
        		<arg value="java/lang/reflect/Field.js"/>
        		<arg value="java/lang/reflect/Method.js"/>
        		<!--
        		<arg value="java/lang/reflect/Proxy.js"/>
        		<arg value="java/lang/reflect/ReflectAccess.js"/>
        		<arg value="java/lang/reflect/ReflectPermission.js"/>
        		-->
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    </target>

    <!-- ================================= 
          target: pack.swt.basic              
         ================================= -->
    <target name="pack.swt.basic" description="Building j2s-swt-*.z.js">
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/basic.z.js"/>
        	
        	<arg value="${j2s.swt.bin}"/>
        	
    		<!--
    		<arg value="org/eclipse/swt/SWT.js"/>
    		<arg value="org/eclipse/swt/SWTError.js"/>
       		<arg value="org/eclipse/swt/SWTException.js"/>
    		
    		<arg value="org/eclipse/swt/internal/SWTEventListener.js"/>
    		<arg value="org/eclipse/swt/internal/SWTEventObject.js"/>
    		-->
    		<arg value="org/eclipse/swt/internal/SerializableCompatibility.js"/>
    		<arg value="org/eclipse/swt/internal/CloneableCompatibility.js"/>
    		<arg value="org/eclipse/swt/internal/RunnableCompatibility.js"/>
    		
    		<arg value="org/eclipse/swt/internal/dnd/HTMLEventWrapper.js"/>
    		<arg value="org/eclipse/swt/internal/dnd/DragListener.js"/>
    		<arg value="org/eclipse/swt/internal/dnd/DragAdapter.js"/>
    		<arg value="org/eclipse/swt/internal/dnd/DragEvent.js"/>
    		
    		<arg value="org/eclipse/swt/internal/struct/WINDOWPOS.js"/>
    		<arg value="org/eclipse/swt/internal/struct/MESSAGE.js"/>
    		
    		<arg value="org/eclipse/swt/accessibility/Accessible.js"/>

    		<arg value="org/eclipse/swt/graphics/Point.js"/>
    		<arg value="org/eclipse/swt/graphics/Rectangle.js"/>
    		<arg value="org/eclipse/swt/graphics/RGB.js"/>
    		
    		<!--
    		<arg value="org/eclipse/swt/graphics/GC.js"/>
    		-->

    		<arg value="org/eclipse/swt/graphics/Resource.js"/>
    		<arg value="org/eclipse/swt/graphics/Color.js"/>
    		<arg value="org/eclipse/swt/graphics/Cursor.js"/>

    		<arg value="org/eclipse/swt/graphics/Drawable.js"/>
    		<arg value="org/eclipse/swt/graphics/Device.js"/>
    		<arg value="org/eclipse/swt/graphics/DeviceData.js"/>

    		<arg value="org/eclipse/swt/widgets/Monitor.js"/>

    		<!--
    		<arg value="org/eclipse/swt/graphics/ImageData.js"/>
    		<arg value="org/eclipse/swt/graphics/ImageLoader.js"/>
    		<arg value="org/eclipse/swt/graphics/Image.js"/>
    		-->

    		<arg value="org/eclipse/swt/graphics/Font.js"/>
    		<arg value="org/eclipse/swt/graphics/FontData.js"/>
    		<arg value="org/eclipse/swt/graphics/FontMetrics.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>
    </target>

    <!-- ================================= 
          target: pack.swt.more              
         ================================= -->
    <target name="pack.swt.more" description="Building j2s-swt-*.z.js">
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/more.z.js"/>
        	
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/internal/ResizeHandler.js"/>
        		<arg value="org/eclipse/swt/internal/ResizeSystem.js"/>

        		<arg value="org/eclipse/swt/internal/dnd/DragAndDrop.js"/>
        		<arg value="org/eclipse/swt/internal/dnd/DNDUtils.js"/>
        		<arg value="org/eclipse/swt/internal/dnd/ShellFrameDND.js"/>
        		<!--
        		-->
        		<arg value="org/eclipse/swt/internal/browser/OS.js"/>
        		<arg value="org/eclipse/swt/internal/browser/Popup.js"/>
        		
        		<arg value="org/eclipse/swt/graphics/Image.js"/>
        		<arg value="org/eclipse/swt/graphics/ImageData.js"/>

        		<arg value="org/eclipse/swt/widgets/Item.js"/>
        		<arg value="org/eclipse/swt/widgets/Layout.js"/>
        		<!--
        		<arg value="org/eclipse/swt/graphics/ImageData.js"/>
        		<arg value="org/eclipse/swt/graphics/ImageLoader.js"/>

        		<arg value="org/eclipse/swt/graphics/Font.js"/>
        		<arg value="org/eclipse/swt/graphics/FontData.js"/>
        		<arg value="org/eclipse/swt/graphics/FontMetrics.js"/>
        		-->

        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/SWT.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
        		<arg value="org/eclipse/swt/SWT.js"/>
    			<arg value="org/eclipse/swt/SWTError.js"/>
    			<arg value="org/eclipse/swt/SWTException.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/layout/GridLayout.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
        		<arg value="org/eclipse/swt/layout/GridData.js"/>
    			<arg value="org/eclipse/swt/layout/GridLayout.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/layout/FillLayout.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
        		<arg value="org/eclipse/swt/layout/FillData.js"/>
    			<arg value="org/eclipse/swt/layout/FillLayout.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/layout/RowLayout.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
        		<arg value="org/eclipse/swt/layout/RowData.js"/>
    			<arg value="org/eclipse/swt/layout/RowLayout.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/layout/FormLayout.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
        		<arg value="org/eclipse/swt/layout/FormAttachment.js"/>
        		<arg value="org/eclipse/swt/layout/FormData.js"/>
    			<arg value="org/eclipse/swt/layout/FormLayout.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/Tray.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
        		<arg value="org/eclipse/swt/widgets/TrayItem.js"/>
    			<arg value="org/eclipse/swt/widgets/Tray.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/TabFolder.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/widgets/TabItem.js"/>
        		<arg value="org/eclipse/swt/widgets/TabFolder.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/Tree.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/widgets/TreeItem.js"/>
    			<arg value="org/eclipse/swt/widgets/TreeColumn.js"/>
        		<arg value="org/eclipse/swt/widgets/Tree.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/ToolBar.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/widgets/ToolItem.js"/>
        		<arg value="org/eclipse/swt/widgets/ToolBar.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/Table.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/widgets/TableItem.js"/>
    			<arg value="org/eclipse/swt/widgets/TableColumn.js"/>
        		<arg value="org/eclipse/swt/widgets/Table.js"/>
    			<arg value="org/eclipse/swt/internal/dnd/TableColumnDND.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/Common.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/widgets/Label.js"/>
    			<arg value="org/eclipse/swt/widgets/Button.js"/>
        		<arg value="org/eclipse/swt/widgets/Text.js"/>
        		<arg value="org/eclipse/swt/widgets/Group.js"/>
        		<arg value="org/eclipse/swt/widgets/TabItem.js"/>
        		<arg value="org/eclipse/swt/widgets/TabFolder.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>


        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/custom/SashForm.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/internal/dnd/SashDND.js"/>
    			<arg value="org/eclipse/swt/widgets/Sash.js"/>
    			<arg value="org/eclipse/swt/custom/SashFormData.js"/>
    			<arg value="org/eclipse/swt/custom/SashFormLayout.js"/>
    			<arg value="org/eclipse/swt/custom/SashForm.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>


        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/custom/CTabFolder.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/custom/CTabFolderEvent.js"/>
    			<arg value="org/eclipse/swt/custom/CTabFolderListener.js"/>
    			<arg value="org/eclipse/swt/custom/CTabFolderAdapter.js"/>
    			<arg value="org/eclipse/swt/custom/CTabFolder2Listener.js"/>
    			<arg value="org/eclipse/swt/custom/CTabFolder2Adapter.js"/>
    			<arg value="org/eclipse/swt/custom/CTabItem.js"/>
    			<arg value="org/eclipse/swt/custom/CTabFolderLayout.js"/>
    			<arg value="org/eclipse/swt/custom/CTabFolder.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/custom/CLable.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/custom/CLayoutData.js"/>
    			<arg value="org/eclipse/swt/custom/CLabel.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/custom/CBanner.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/custom/CBannerLayout.js"/>
    			<arg value="org/eclipse/swt/custom/CBanner.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/custom/ViewForm.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/custom/ViewFormLayout.js"/>
    			<arg value="org/eclipse/swt/custom/ViewForm.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>


        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/Slider.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/internal/dnd/SliderDND.js"/>
    			<arg value="org/eclipse/swt/widgets/Slider.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/Scale.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/internal/dnd/ScaleDND.js"/>
    			<arg value="org/eclipse/swt/widgets/Scale.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/Menu.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/widgets/MenuItem.js"/>
        		<arg value="org/eclipse/swt/widgets/Menu.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/CoolBar.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/widgets/CoolItem.js"/>
        		<arg value="org/eclipse/swt/widgets/CoolBar.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>

    	
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/graphics/Font.z.js"/>
        	<arg value="${j2s.swt.bin}"/>
    			<arg value="org/eclipse/swt/graphics/FontData.js"/>
        		<arg value="org/eclipse/swt/graphics/FontMetrics.js"/>
        		<arg value="org/eclipse/swt/graphics/Font.js"/>
        	
	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>


    </target>


    <!-- ================================= 
          target: pack.swt.shell              
         ================================= -->
    <target name="pack.swt.shell" description="Building j2s-swt-*.z.js">
        <java classname="net.sf.j2s.lib.build.UTF8Concat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/widgets/Shell.z.js"/>
        	
        	<arg value="${j2s.swt.bin}"/>
        	
    		<arg value="org/eclipse/swt/widgets/Display.js"/>
    		<arg value="org/eclipse/swt/widgets/Widget.js"/>
    		<arg value="org/eclipse/swt/widgets/Control.js"/>
    		<arg value="org/eclipse/swt/widgets/ScrollBar.js"/>
    		<arg value="org/eclipse/swt/widgets/Scrollable.js"/>
    		<arg value="org/eclipse/swt/widgets/Composite.js"/>
    		<arg value="org/eclipse/swt/widgets/Canvas.js"/>
    		<arg value="org/eclipse/swt/widgets/Decorations.js"/>
    		<arg value="org/eclipse/swt/widgets/ShellManager.js"/>
    		<arg value="org/eclipse/swt/widgets/Shell.js"/>
    		<arg value="org/eclipse/swt/widgets/Dialog.js"/>

	    	<classpath>
	    		<pathelement path="${j2s.lib.project}/bin"/>
	    	</classpath>
	    </java>
    </target>
	
    <!-- ================================= 
          target: pack.swt.event              
         ================================= -->
    <target name="pack.swt.event" description="Building j2s-swt-*.z.js">
        <java classname="net.sf.j2s.lib.build.J2SConcat">
        	<arg value="false"/>
        	<arg value="${j2s.swt.bin}/org/eclipse/swt/events.z.js"/>
        	
        	<arg value="${j2s.swt.bin}"/>

    		<arg value="org/eclipse/swt/internal/SWTEventListener.js"/>
    		<arg value="org/eclipse/swt/internal/SWTEventObject.js"/>
    		
    		<arg value="org/eclipse/swt/widgets/Event.js"/>
    		<arg value="org/eclipse/swt/events/TypedEvent.js"/>
    	
    		<arg value="org/eclipse/swt/events/ArmEvent.js"/>
    		<arg value="org/eclipse/swt/events/ControlEvent.js"/>
    		<arg value="org/eclipse/swt/events/DisposeEvent.js"/>
    		<arg value="org/eclipse/swt/events/FocusEvent.js"/>
    		<arg value="org/eclipse/swt/events/HelpEvent.js"/>
    		<arg value="org/eclipse/swt/events/KeyEvent.js"/>
    		<arg value="org/eclipse/swt/events/MenuEvent.js"/>
    		<arg value="org/eclipse/swt/events/ModifyEvent.js"/>
    		<arg value="org/eclipse/swt/events/MouseEvent.js"/>
    		<arg value="org/eclipse/swt/events/PaintEvent.js"/>
    		<arg value="org/eclipse/swt/events/SelectionEvent.js"/>
    		<arg value="org/eclipse/swt/events/ShellEvent.js"/>
    		<arg value="org/eclipse/swt/events/TraverseEvent.js"/>
    		<arg value="org/eclipse/swt/events/TreeEvent.js"/>
    		<arg value="org/eclipse/swt/events/VerifyEvent.js"/>
    		
    		<arg value="org/eclipse/swt/widgets/Listener.js"/>
    		<arg value="org/eclipse/swt/widgets/TypedListener.js"/>

    		<arg value="org/eclipse/swt/events/ArmListener.js"/>
    		<arg value="org/eclipse/swt/events/ControlListener.js"/>
    		<arg value="org/eclipse/swt/events/ControlAdapter.js"/>
    		<arg value="org/eclipse/swt/events/DisposeListener.js"/>
    		<arg value="org/eclipse/swt/events/FocusListener.js"/>
    		<arg value="org/eclipse/swt/events/FocusAdapter.js"/>
    		<arg value="org/eclipse/swt/events/HelpListener.js"/>
    		<arg value="org/eclipse/swt/events/KeyListener.js"/>
    		<arg value="org/eclipse/swt/events/KeyAdapter.js"/>
    		<arg value="org/eclipse/swt/events/MenuListener.js"/>
    		<arg value="org/eclipse/swt/events/MenuAdapter.js"/>
    		<arg value="org/eclipse/swt/events/ModifyListener.js"/>
    		<arg value="org/eclipse/swt/events/MouseListener.js"/>
    		<arg value="org/eclipse/swt/events/MouseAdapter.js"/>
    		<arg value="org/eclipse/swt/events/MouseMoveListener.js"/>
    		<arg value="org/eclipse/swt/events/MouseTrackListener.js"/>
    		<arg value="org/eclipse/swt/events/MouseTrackAdapter.js"/>
    		<arg value="org/eclipse/swt/events/PaintListener.js"/>
    		<arg value="org/eclipse/swt/events/SelectionListener.js"/>
    		<arg value="org/eclipse/swt/events/SelectionAdapter.js"/>
    		<arg value="org/eclipse/swt/events/ShellListener.js"/>
    		<arg value="org/eclipse/swt/events/ShellAdapter.js"/>
    		<arg value="org/eclipse/swt/events/TraverseListener.js"/>
    		<arg value="org/eclipse/swt/events/TreeListener.js"/>
    		<arg value="org/eclipse/swt/events/TreeAdapter.js"/>
    		<arg value="org/eclipse/swt/events/VerifyListener.js"/>

    		<arg value="org/eclipse/swt/widgets/EventTable.js"/>

        	<classpath>
        		<pathelement path="${j2s.lib.project}/bin"/>
        	</classpath>
        </java>
    </target>

</project>

