~ubuntu-branches/ubuntu/utopic/sweethome3d/utopic

« back to all changes in this revision

Viewing changes to .pc/02noadditionalprovisions/build.xml

  • Committer: Package Import Robot
  • Author(s): Gabriele Giacone
  • Date: 2012-10-28 17:18:54 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20121028171854-mef4rqs1pjkebnnu
Tags: 3.7+dfsg-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
     - macosxSignedInstaller  : Builds signed SweetHome3D-version-macosx.dmg file in install directory
22
22
     - linux32Installer       : Builds SweetHome3D-version-linux-x86.tgz file in install directory
23
23
     - linux64Installer       : Builds SweetHome3D-version-linux-x64.tgz file in install directory
 
24
     - portableArchive        : Builds SweetHome3D-version-portable files in install/portable directory
24
25
     - viewerInstaller        : Builds SweetHome3DViewer-version.zip file in install directory
25
26
     - sourceArchive          : Builds SweetHome3D-version-src.zip file in install directory
26
27
     - javadoc                : Builds SweetHome3D-version-javadoc.zip file install directory 
29
30
-->
30
31
<project basedir="." default="javaWebStart" name="SweetHome3D">
31
32
  <!-- The current version of Sweet Home 3D -->
32
 
  <property name="version" value="3.6"/>
 
33
  <property name="version" value="3.7"/>
33
34
 
34
35
  <target name="build" 
35
36
          description="Builds build/SweetHome3D.jar with all its classes">
610
611
    <copy file="THIRDPARTY-LICENSE-BATIK.TXT"      todir="install/macosx/SweetHome3D-${version}"/>
611
612
    <copy file="THIRDPARTY-LICENSE-VECTORGRAPHICS.TXT"  todir="install/macosx/SweetHome3D-${version}" />
612
613
    <copy file="THIRDPARTY-LICENSE-SUNFLOW.TXT"   todir="install/macosx/SweetHome3D-${version}" />
613
 
    <copy file="THIRDPARTY-LICENSE-JMF.HTML"       todir="install/macosx/SweetHome3D-${version}"/>
 
614
    <copy file="THIRDPARTY-LICENSE-JMF.HTML"       todir="install/macosx/SweetHome3D-${version}" />
614
615
    <copy file="THIRDPARTY-LICENSE-TANGO.TXT"      todir="install/macosx/SweetHome3D-${version}" />
615
616
    <copy file="THIRDPARTY-LICENSE-CONTRIBUTIONS.TXT"   todir="install/macosx/SweetHome3D-${version}" />
616
617
  </target>
676
677
 
677
678
  <!-- Builds install/SweetHome3D-version-linux-x86.tgz archive that contains SweetHome3D command
678
679
       with a Linux JRE and Sweet Home 3D libraries.
679
 
       CAUTION : Requires a Linux 32 bits JRE installed in jre1.6.0_35 -->
 
680
       CAUTION : Requires a Linux 32 bits JRE installed in jre1.6.0_37 -->
680
681
  <target name="linux32Installer" depends="application,furniture,textures,help"
681
682
          description="Builds install/SweetHome3D-version-linux-x86.tgz archive">
682
683
    <!-- Copy SweetHome3D.jar and Linux Java 3D DLLs and JARs for Java 3D 
709
710
    <copy file="THIRDPARTY-LICENSE-ITEXT.TXT"     todir="install/linux/i386/SweetHome3D-${version}" />
710
711
    <copy file="THIRDPARTY-LICENSE-VECTORGRAPHICS.TXT" todir="install/linux/i386/SweetHome3D-${version}" />
711
712
    <copy file="THIRDPARTY-LICENSE-SUNFLOW.TXT"   todir="install/linux/i386/SweetHome3D-${version}" />
712
 
    <copy file="THIRDPARTY-LICENSE-JMF.HTML"      todir="install/linux/i386/SweetHome3D-${version}"/>
 
713
    <copy file="THIRDPARTY-LICENSE-JMF.HTML"      todir="install/linux/i386/SweetHome3D-${version}" />
713
714
    <copy file="THIRDPARTY-LICENSE-TANGO.TXT"     todir="install/linux/i386/SweetHome3D-${version}" />
714
715
    <copy file="THIRDPARTY-LICENSE-CONTRIBUTIONS.TXT"  todir="install/linux/i386/SweetHome3D-${version}" />
715
716
 
716
717
    <!-- Copy JRE to install/linux/i386/SweetHome3D-version/jre... excluding files mentioned 
717
718
         in JRE README.TXT file (JRE bin/java command excepted) -->
718
 
    <copy todir="install/linux/i386/SweetHome3D-${version}/jre1.6.0_35">
719
 
      <fileset dir="jre1.6.0_35">
 
719
    <copy todir="install/linux/i386/SweetHome3D-${version}/jre1.6.0_37">
 
720
      <fileset dir="jre1.6.0_37">
720
721
        <include name="**"/>
721
722
 
722
723
        <exclude name="lib/ext/sunjce_provider.jar"/>
736
737
      <tarfileset dir="install/linux/i386"
737
738
                  includes="SweetHome3D-${version}/**">
738
739
        <exclude name="SweetHome3D-${version}/SweetHome3D"/>
739
 
        <exclude name="SweetHome3D-${version}/jre1.6.0_35/bin/java"/>
 
740
        <exclude name="SweetHome3D-${version}/jre1.6.0_37/bin/java"/>
740
741
      </tarfileset>
741
742
      <!-- Change executable permission of SweetHome3D and java commands -->
742
743
      <tarfileset dir="install/linux/i386" mode="755">
743
744
        <include name="SweetHome3D-${version}/SweetHome3D"/>
744
 
        <include name="SweetHome3D-${version}/jre1.6.0_35/bin/java"/>
 
745
        <include name="SweetHome3D-${version}/jre1.6.0_37/bin/java"/>
745
746
      </tarfileset>
746
747
    </tar>
747
748
 
754
755
 
755
756
  <!-- Builds install/SweetHome3D-version-linux-x64.tgz archive that contains SweetHome3D command
756
757
       with a Linux JRE and Sweet Home 3D libraries.
757
 
       CAUTION : Requires a Linux 64 bits JRE installed in jre1.6.0_35 -->
 
758
       CAUTION : Requires a Linux 64 bits JRE installed in jre1.6.0_37 -->
758
759
  <target name="linux64Installer" depends="application,furniture,textures,help"
759
760
          description="Builds install/SweetHome3D-version-linux-x64.tgz archive">
760
761
    <!-- Copy SweetHome3D.jar and Linux Java 3D DLLs and JARs for Java 3D 
787
788
    <copy file="THIRDPARTY-LICENSE-ITEXT.TXT"     todir="install/linux/x64/SweetHome3D-${version}" />
788
789
    <copy file="THIRDPARTY-LICENSE-VECTORGRAPHICS.TXT" todir="install/linux/x64/SweetHome3D-${version}" />
789
790
    <copy file="THIRDPARTY-LICENSE-SUNFLOW.TXT"   todir="install/linux/x64/SweetHome3D-${version}" />
790
 
    <copy file="THIRDPARTY-LICENSE-JMF.HTML"      todir="install/linux/x64/SweetHome3D-${version}"/>
 
791
    <copy file="THIRDPARTY-LICENSE-JMF.HTML"      todir="install/linux/x64/SweetHome3D-${version}" />
791
792
    <copy file="THIRDPARTY-LICENSE-TANGO.TXT"     todir="install/linux/x64/SweetHome3D-${version}" />
792
793
    <copy file="THIRDPARTY-LICENSE-CONTRIBUTIONS.TXT"  todir="install/linux/x64/SweetHome3D-${version}" />
793
794
 
794
795
    <!-- Copy JRE to install/linux/x64/SweetHome3D-version/jre... excluding files mentioned 
795
796
         in JRE README.TXT file (JRE bin/java command excepted) -->
796
 
    <copy todir="install/linux/x64/SweetHome3D-${version}/jre1.6.0_35">
797
 
      <fileset dir="jre1.6.0_35">
 
797
    <copy todir="install/linux/x64/SweetHome3D-${version}/jre1.6.0_37">
 
798
      <fileset dir="jre1.6.0_37">
798
799
        <include name="**"/>
799
800
 
800
801
        <exclude name="lib/ext/sunjce_provider.jar"/>
814
815
      <tarfileset dir="install/linux/x64"
815
816
                  includes="SweetHome3D-${version}/**">
816
817
        <exclude name="SweetHome3D-${version}/SweetHome3D"/>
817
 
        <exclude name="SweetHome3D-${version}/jre1.6.0_35/bin/java"/>
 
818
        <exclude name="SweetHome3D-${version}/jre1.6.0_37/bin/java"/>
818
819
      </tarfileset>
819
820
      <!-- Change executable permission of SweetHome3D and java commands -->
820
821
      <tarfileset dir="install/linux/x64" mode="755">
821
822
        <include name="SweetHome3D-${version}/SweetHome3D"/>
822
 
        <include name="SweetHome3D-${version}/jre1.6.0_35/bin/java"/>
 
823
        <include name="SweetHome3D-${version}/jre1.6.0_37/bin/java"/>
823
824
      </tarfileset>
824
825
    </tar>
825
826
 
830
831
    <echo message="install/SweetHome3D-${version}-linux-x64.tgz ready for ftp"/>
831
832
  </target>
832
833
 
 
834
  <!-- Builds Sweet Home 3D Windows signed portable launchers in install/portable/SweetHome3D-version-portable directory.
 
835
       CAUTION : May be run only under Windows and requires launch4j and SignTool
 
836
                 included in Windows platform SDK installed in their default location -->
 
837
  <target name="windowsSignedPortableLaunchers" 
 
838
          description="Builds Sweet Home 3D Windows portable launchers">
 
839
    <!-- Create portable executable files with launch4j -->
 
840
    <exec executable="C:\Program Files\Launch4j\launch4jc.exe">
 
841
      <arg value="${basedir}\install\portable\SweetHome3D-windows-x86.xml"/>
 
842
    </exec>
 
843
    <exec executable="C:\Program Files\Launch4j\launch4jc.exe">
 
844
      <arg value="${basedir}\install\portable\SweetHome3D-windows-x64.xml"/>
 
845
    </exec>
 
846
 
 
847
    <input message="Enter signature password:" 
 
848
           addproperty="password"/> 
 
849
    <!-- Sign launchers -->
 
850
    <exec executable="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\signtool.exe">
 
851
      <arg value="sign"/>
 
852
      <arg value="/f"/>
 
853
      <arg value="${basedir}\install\windows\keys.pfx"/>
 
854
      <arg value="/p"/>
 
855
      <arg value="${password}"/>
 
856
      <arg value="${basedir}\install\portable\SweetHome3D-windows-x86.exe"/>
 
857
      <arg value="${basedir}\install\portable\SweetHome3D-windows-x64.exe"/>
 
858
    </exec>
 
859
 
 
860
    <mkdir dir="install/portable/SweetHome3D-${version}-portable"/>
 
861
    <move file="install/portable/SweetHome3D-windows-x86.exe" todir="install/portable/SweetHome3D-${version}-portable" />
 
862
    <move file="install/portable/SweetHome3D-windows-x64.exe" todir="install/portable/SweetHome3D-${version}-portable" />
 
863
  </target>
 
864
 
 
865
  <!-- Builds install/portable/SweetHome3D-version-portable files required for SweetHome3D portable version -->
 
866
  <target name="portableArchive" depends="application,furniture,textures,help"
 
867
          description="Builds install/portable/SweetHome3D-version-portable files">
 
868
    <!-- Copy SweetHome3D JARs and its libs 
 
869
         to install/portable/SweetHome3D-${version}/lib -->
 
870
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/lib/ext"/>
 
871
    <move file="build/SweetHome3D.jar" todir="install/portable/SweetHome3D-${version}-portable/lib" />
 
872
    <move file="build/Furniture.jar"   todir="install/portable/SweetHome3D-${version}-portable/lib" />
 
873
    <move file="build/Textures.jar"    todir="install/portable/SweetHome3D-${version}-portable/lib" />
 
874
    <move file="build/Help.jar"        todir="install/portable/SweetHome3D-${version}-portable/lib" />
 
875
    <copy todir="install/portable/SweetHome3D-${version}-portable/lib" >
 
876
      <fileset dir="lib">
 
877
        <include name="*.jar"/>
 
878
        <exclude name="jmf.jar"/>
 
879
        <exclude name="j3dcore.jar"/>
 
880
        <exclude name="j3dutils.jar"/>
 
881
        <exclude name="vecmath.jar"/>
 
882
      </fileset>
 
883
    </copy>
 
884
    <!-- Copy jnlp.jar, JMF and DLLs and JARs for Java 3D 
 
885
         to install/portable/SweetHome3D-${version}-portable/lib/ext -->
 
886
    <copy file="libtest/jnlp.jar" todir="install/portable/SweetHome3D-${version}-portable/lib/ext"/>
 
887
    <copy todir="install/portable/SweetHome3D-${version}-portable/lib/ext">
 
888
      <fileset dir="lib">
 
889
        <include name="jmf.jar"/>
 
890
        <include name="j3dcore.jar"/>
 
891
        <include name="j3dutils.jar"/>
 
892
        <include name="vecmath.jar"/>
 
893
        <include name="macosx/**"/>
 
894
        <include name="windows/**"/>
 
895
        <include name="linux/**"/>
 
896
      </fileset>
 
897
    </copy>
 
898
    <!-- Copy README.TXT and licenses texts to install/macosx/SweetHome3D-version/ -->
 
899
    <copy file="install/portable/README.TXT" todir="install/portable/SweetHome3D-${version}-portable"/>
 
900
    <copy file="COPYING.TXT" todir="install/portable/SweetHome3D-${version}-portable"/>
 
901
    <copy file="LICENSE.TXT" todir="install/portable/SweetHome3D-${version}-portable" />
 
902
    <copy file="THIRDPARTY-LICENSE-JAVA.TXT"      todir="install/portable/SweetHome3D-${version}-portable" />
 
903
    <copy file="THIRDPARTY-LICENSE-JAVA3D.TXT"     todir="install/portable/SweetHome3D-${version}-portable" />
 
904
    <copy file="THIRDPARTY-LICENSE-LOADER3DS.TXT"  todir="install/portable/SweetHome3D-${version}-portable" />
 
905
    <copy file="THIRDPARTY-LICENSE-BATIK.TXT"      todir="install/portable/SweetHome3D-${version}-portable"/>
 
906
    <copy file="THIRDPARTY-LICENSE-ITEXT.TXT"     todir="install/portable/SweetHome3D-${version}-portable" />
 
907
    <copy file="THIRDPARTY-LICENSE-VECTORGRAPHICS.TXT"  todir="install/portable/SweetHome3D-${version}-portable" />
 
908
    <copy file="THIRDPARTY-LICENSE-SUNFLOW.TXT"   todir="install/portable/SweetHome3D-${version}-portable" />
 
909
    <copy file="THIRDPARTY-LICENSE-JMF.HTML"       todir="install/portable/SweetHome3D-${version}-portable" />
 
910
    <copy file="THIRDPARTY-LICENSE-LAUNCH4J.TXT"  todir="install/portable/SweetHome3D-${version}-portable" />
 
911
    <copy file="THIRDPARTY-LICENSE-TANGO.TXT"      todir="install/portable/SweetHome3D-${version}-portable" />
 
912
    <copy file="THIRDPARTY-LICENSE-CONTRIBUTIONS.TXT"   todir="install/portable/SweetHome3D-${version}-portable" />
 
913
 
 
914
    <!-- Copy Mac OS X application bundle using a different Info.plist file -->
 
915
    <copy todir="install/portable/SweetHome3D-${version}-portable/SweetHome3D-macosx.app">
 
916
      <fileset dir="install/macosx/Sweet Home 3D"/>
 
917
    </copy>
 
918
    <copy file="install/portable/Info.plist" todir="install/portable/SweetHome3D-${version}-portable/SweetHome3D-macosx.app/Contents" overwrite="true"/>
 
919
    <!-- Change executable permission of SweetHome3D lost during copy task -->
 
920
    <chmod perm="+x" file="install/portable/SweetHome3D-${version}-portable/SweetHome3D-macosx.app/Contents/MacOS/SweetHome3D"/>
 
921
 
 
922
    <!-- Copy Linux command files -->
 
923
    <copy file="install/portable/SweetHome3D-linux-x86" todir="install/portable/SweetHome3D-${version}-portable"/>
 
924
    <copy file="install/portable/SweetHome3D-linux-x64" todir="install/portable/SweetHome3D-${version}-portable"/>
 
925
    <!-- Change executable permission of command files lost during copy task -->
 
926
    <chmod perm="+x" file="install/portable/SweetHome3D-${version}-portable/SweetHome3D-linux-*"/>
 
927
 
 
928
    <!-- Prepare bundle jre directories -->
 
929
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/jre/windows/i586"/>
 
930
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/jre/windows/x64"/>
 
931
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/jre/linux/i586"/>
 
932
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/jre/linux/x64"/>
 
933
 
 
934
    <!-- Prepare data directories for SH3F, SH3T, SH3L and SH3P files -->
 
935
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/data/furniture"/>
 
936
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/data/textures"/>
 
937
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/data/languages"/>
 
938
    <mkdir dir="install/portable/SweetHome3D-${version}-portable/data/plugins"/>
 
939
 
 
940
    <echo message="copy Windows portable launchers, jres, SH3F, SH3T, SH3L and SH3P files 
 
941
                   to install/portable/SweetHome3D-${version}-portable and prepare compressed archive"/>
 
942
  </target>
 
943
 
833
944
  <!-- Builds install/SweetHome3DViewer-version.zip archive that contains 
834
945
       the files required for SweetHome3DViewer applet -->
835
946
  <target name="viewerInstaller" depends="viewer"