Fix build error for Mac
authorharry.heo <harry.heo@samsung.com>
Fri, 15 Apr 2016 06:29:36 +0000 (15:29 +0900)
committerharry.heo <harry.heo@samsung.com>
Fri, 15 Apr 2016 06:29:36 +0000 (15:29 +0900)
Fixed Eclipse Headless build error.
base was incorrect.
Modify ant-build.xml

Change-Id: I7d8a52e2877d3029ea405791be5959137da05812
Signed-off-by: harry.heo <harry.heo@samsung.com>
script/ant-build.xml

index 3facb08..5ab8a50 100644 (file)
@@ -12,7 +12,7 @@
     <property name="build.result.directory" value="${build.type}.${build.id}" />
     <property name="build.result.path" value="${build.path}/${build.result.directory}" />
     <property name="ide.root.path.name" value="ide" />
-
+    <property name="ide.root.path.parent" value=".." /><!--This should be replaced in case of Mac-->
     <property name="archive.platform.name" value="" />
     <property name="windowing" value="" />
     <property name="architecture" value="" />
@@ -90,6 +90,8 @@
                 <property name="architecture" value="x86_64" />
                 <var name="ide.root.path.name" unset="true" />
                 <property name="ide.root.path.name" value="IDE.app/Contents/Eclipse" />
+                <var name="ide.root.path.parent" unset="true" />
+                <property name="ide.root.path.parent" value="../../.." />
             </case>
             <default>
                 <fail message="${TARGET_OS} is not support yet." unless="false" />
         <echo message="IDE ANT - result.archive.file : ${result.archive.file}" />
         <echo message="IDE ANT - build.script.path : ${build.script.path}" />
         <echo message="IDE ANT - reference.ide.path : ${reference.ide.path}" />
+        <echo message="IDE ANT - ide.root.path.parent : ${ide.root.path.parent}" />
     </target>
     <!-- =====================================================================
      - remove leggacy directory and files.
      ===================================================================== -->
     <target name="gen.ant.properties.file" description="create properties file for ant build.">
         <property name="builder.path" value="${SRCDIR}/builder" />
-        <property name="parent.path.of.based.eclipse" value="${reference.ide.path}/.." />
+        <property name="parent.path.of.based.eclipse" value="${reference.ide.path}/${ide.root.path.parent}" />
         <echo>IDE ANT - builder.path : ${builder.path}</echo>
         <echo>IDE ANT - parent.path.of.based.eclipse : ${parent.path.of.based.eclipse}</echo>