Build: modify build.xml for table class
authorjihye424.kim <jihye424.kim@samsung.com>
Wed, 19 Aug 2015 08:26:58 +0000 (17:26 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 20 Aug 2015 01:46:56 +0000 (10:46 +0900)
Change-Id: I2eaf4101d3b1609678e701f6f977801e3b7524c3
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
build.xml
widget_src/com/codeaffine/eclipse/swt/widget/scrollbar/Direction.java

index 92f335c..f57d018 100644 (file)
--- a/build.xml
+++ b/build.xml
                <copy todir="${build.dir}/strings">
                        <fileset dir="${common.dir}/resource/strings" />
                </copy>
+               <mkdir dir="${build.dir}/table"/>
+               <copy todir="${build.dir}/table">
+                       <fileset dir="${common.dir}/resource/table" />
+               </copy>
                <jar jarfile="${common.dir}/${jar.file}" basedir="${build.dir}" duplicate="add">
                        <fileset file="about.properties" />
                        <manifest>
@@ -72,7 +76,7 @@
        <target name="common-compile" depends="make-properties">
                <echo message="compiling emulator manager jar" />
                <antcall target="prepare-compile"/>
-               <javac includeantruntime="false" encoding="UTF-8" fork="true" srcdir="${common.dir}/src:${common.dir}/jaxb_src" destdir="${build.dir}" debug="on" memorymaximumsize="128m">
+               <javac includeantruntime="false" encoding="UTF-8" fork="true" srcdir="${common.dir}/src:${common.dir}/jaxb_src:${common.dir}/widget_src" destdir="${build.dir}" debug="on" memorymaximumsize="128m">
                        <classpath refid="common-classpath" />
                </javac>
                <antcall target="create-common-jar"/>
@@ -94,7 +98,7 @@
        <target name="common-compile-dibs" depends="make-properties">
                <echo message="compiling emulator manager jar" />
                <antcall target="prepare-compile"/>
-               <javac includeantruntime="false" encoding="UTF-8" fork="true" srcdir="${common.dir}/src:${common.dir}/jaxb_src" destdir="${build.dir}" debug="on" memorymaximumsize="128m">
+               <javac includeantruntime="false" encoding="UTF-8" fork="true" srcdir="${common.dir}/src:${common.dir}/jaxb_src:${common.dir}/widget_src" destdir="${build.dir}" debug="on" memorymaximumsize="128m">
                        <classpath refid="common-classpath-dibs" />
                </javac>
        <antcall target="create-common-jar"/>
index 18a45ab..8f7f5cd 100644 (file)
@@ -20,7 +20,7 @@ enum Direction {
     }
 
     private ComponentDistribution calculateComponentDistribution( FlatScrollBar scrollBar, int buttonLength  ) {
-      return calculateComponentDistribution( scrollBar, buttonLength, getControlBounds( scrollBar ).width );
+      return Direction.calculateComponentDistribution( scrollBar, buttonLength, getControlBounds( scrollBar ).width );
     }
 
     private Rectangle[] calculateComponentBounds( ComponentDistribution distribution, FlatScrollBar scrollBar ) {
@@ -74,7 +74,7 @@ enum Direction {
     }
 
     private ComponentDistribution calculateComponentDistribution( FlatScrollBar scrollBar, int buttonLength ) {
-      return calculateComponentDistribution( scrollBar, buttonLength, getControlBounds( scrollBar ).height );
+      return Direction.calculateComponentDistribution( scrollBar, buttonLength, getControlBounds( scrollBar ).height );
     }
 
     private Rectangle[] calculateComponentBounds( ComponentDistribution distribution, FlatScrollBar scrollBar ) {