Changeset 845

Show
Ignore:
Timestamp:
09/14/06 21:21:25 (2 years ago)
Author:
alban
Message:

generate jnlp with ivy artifact information

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build-docs.xml

    r838 r845  
    4141   
    4242  <target name="prepare.docbook.retrieve"> 
    43         <ivy:configure /> 
    44         <ivy:retrieve pattern="lib/[conf]/[artifact].[ext]" conf="build-docbook" /> 
     43        <ivy-configure /> 
     44        <ivy-retrieve pattern="lib/[conf]/[artifact].[ext]" conf="build-docbook" /> 
    4545  </target> 
    4646   
     
    6565   
    6666  <target name="prepare.xmlreleasenotes" depends="prepare.ivy"> 
    67         <ivy:retrieve pattern="lib/[conf]/[artifact].[ext]" conf="build-xmlreleasenotes" /> 
     67        <ivy-retrieve pattern="lib/[conf]/[artifact].[ext]" conf="build-xmlreleasenotes" /> 
    6868        <taskdef classname="org.xrn.ant.XMLReleaseNotes" name="xrn"> 
    6969                <classpath> 
     
    263263 
    264264        <target name="build.docs.xref" depends="build.docs.xref.check" unless="build.docs.xref.notRequired"> 
    265         <ivy:retrieve pattern="lib/[conf]/[artifact].[ext]" conf="build-antjxr" /> 
     265        <ivy-retrieve pattern="lib/[conf]/[artifact].[ext]" conf="build-antjxr" /> 
    266266    <unzip dest="lib/build-antjxr"> 
    267267        <fileset dir="lib/build-antjxr" includes="ant-jxr-data*.zip"/> 
  • trunk/build.properties

    r827 r845  
    55track.dir=${basedir}/track 
    66track.tritonus.dir=${track.dir}/tritonus/patches/0.3.6 
     7track.ivy.dir=${track.dir}/ivy/patches/20060908071202 
    78 
    89dist.jws.keystore=../../kolaka.keystore 
  • trunk/build.xml

    r839 r845  
    1 <project xmlns:ivy="antlib:fr.jayasoft.ivy.ant" name="freecast-all" default="dist" basedir="."> 
     1<project name="freecast-all" default="dist" basedir="."> 
    22 
    33        <import file="build-base.xml"/> 
     
    55 
    66        <target name="prepare.ivy"> 
    7         <ivy:configure /> 
    8         </target> 
     7                <path id="path.ivy"> 
     8                        <fileset dir="${track.ivy.dir}"/> 
     9                </path> 
     10                <taskdef name="ivy-configure" classname="fr.jayasoft.ivy.ant.IvyConfigure" classpathref="path.ivy"/> 
     11          <taskdef name="ivy-resolve" classname="fr.jayasoft.ivy.ant.IvyResolve" classpathref="path.ivy"/> 
     12          <taskdef name="ivy-retrieve" classname="fr.jayasoft.ivy.ant.IvyRetrieve" classpathref="path.ivy"/> 
     13          <taskdef name="ivy-deliver" classname="fr.jayasoft.ivy.ant.IvyDeliver" classpathref="path.ivy"/> 
     14          <taskdef name="ivy-publish" classname="fr.jayasoft.ivy.ant.IvyPublish" classpathref="path.ivy"/> 
     15          <taskdef name="ivy-artifactreport" classname="fr.jayasoft.ivy.ant.IvyArtifactReport" classpathref="path.ivy"/> 
     16        <ivy-configure /> 
     17  </target> 
    918 
    1019        <target name="prepare.version"> 
     
    1423        </target> 
    1524         
    16   <target name="prepare.libraries" depends="prepare.ivy"> 
    17         <ivy:retrieve pattern="lib/[conf]/[artifact].[ext]" conf="core, runtime, test" /> 
     25        <target name="prepare.libraries.check"> 
     26                <available property="prepare.library.retrieve.notRequired" file="lib/.touch"/> 
     27        </target> 
     28 
     29        <target name="prepare.libraries.retrieve" depends="prepare.ivy" unless="prepare.library.retrieve.notRequired"> 
     30        <ivy-retrieve pattern="lib/[conf]/[artifact].[ext]" conf="core, runtime, test" /> 
    1831 
    1932                <patternset id="patternset.nometainf"> 
     
    5568                </copy> 
    5669                 
     70                <touch file="lib/.touch"/> 
     71        </target> 
     72         
     73  <target name="prepare.libraries" depends="prepare.libraries.check, prepare.libraries.retrieve" > 
    5774        <path id="path.build"> 
    5875                <fileset dir="lib/core"/> 
     
    188205                <property name="dist.jws.codebase" value="http://download.freecast.org/jws/libfreecast/"/> 
    189206                 
    190                 <copy tofile="${dist.jws.libfreecast.dir}/libfreecast-${project.version}.jnlp" file="source/org/kolaka/freecast/node/swing/libfreecast.jnlp"> 
     207                <mkdir dir="build/jws"/> 
     208                <ivy-artifactreport tofile="build/jws/ivy-report.xml" conf="core,runtime"/> 
     209                <style in="build/jws/ivy-report.xml" out="build/jws/jnlp-resources.xml" style="source/org/kolaka/freecast/jnlp-resources.xsl"> 
     210                        <param name="project.version" expression="${project.version}"/> 
     211                </style> 
     212                <loadfile property="dist.jws.resources" srcFile="build/jws/jnlp-resources.xml"> 
     213                        <filterchain> 
     214                    <tailfilter lines="-1" skip="1"/> 
     215      </filterchain> 
     216                </loadfile> 
     217                 
     218                <copy tofile="${dist.jws.libfreecast.dir}/libfreecast.jnlp" file="source/org/kolaka/freecast/node/swing/libfreecast.jnlp"> 
    191219                        <filterset> 
    192220                                <filter token="project.version" value="${project.version}" /> 
    193221                                <filter token="codebase" value="${dist.jws.codebase}" /> 
     222                                <filter token="resources" value="${dist.jws.resources}" /> 
    194223                        </filterset> 
    195224                </copy> 
     
    198227                                <filter token="project.version" value="${project.version}" /> 
    199228                                <filter token="codebase" value="${dist.jws.codebase}" /> 
     229                                <filter token="resources" value="${dist.jws.resources}" /> 
    200230                        </filterset> 
    201231                </copy> 
     
    243273                        <fileset dir="dist/lib/sunos/x86" /> 
    244274                </jar> 
    245                 <copy tofile="${dist.jws.libfreecast.dir}/lib/freecast-${project.version}.jar" file="dist/lib/freecast.jar" /> 
     275                <copy tofile="${dist.jws.libfreecast.dir}/lib/freecast.jar" file="dist/lib/freecast.jar" /> 
    246276 
    247277                <signjar keystore="${dist.jws.keystore}" alias="kolaka" storepass="kolaka"> 
  • trunk/source/org/kolaka/freecast/manager/gui/freecast-manager.jnlp

    r810 r845  
    88    <homepage href="http://www.freecast.org"/> 
    99    <description>Start your own peer-to-peer network</description> 
    10         <icon href="http://download.freecast.org/jws/default/freecast-icon-64.gif"/> 
     10               <icon href="http://download.freecast.org/jws/default/freecast-icon-64.gif"/> 
    1111    <icon kind="splash" href="http://download.freecast.org/jws/default/freecast-splash.jpg"/> 
    1212  </information> 
     
    1717 
    1818  <resources> 
    19         <j2se version="1.4+"/> 
    20     <jar href="lib/freecast-@project.version@.jar" main="true"/> 
    21         <jar href="lib/freecast-etc.jar"/> 
    22      
    23     <jar href="lib/commons-cli-1.0.jar"/> 
    24     <jar href="lib/commons-collections-3.1.jar"/> 
    25     <jar href="lib/commons-configuration-1.1RC2.jar"/> 
    26     <jar href="lib/commons-digester-1.7.jar"/> 
    27     <jar href="lib/commons-lang-2.0.jar"/> 
    28     <jar href="lib/commons-logging-1.1-RC5.jar"/> 
    29     <jar href="lib/commons-io-1.0.jar"/> 
    30     <jar href="lib/commons-beanutils.jar"/> 
    31     <jar href="lib/jogg-0.0.7.jar"/> 
    32     <jar href="lib/jorbis-0.0.15.jar"/> 
    33     <jar href="lib/log4j-1.2.13.jar"/> 
    34     <jar href="lib/tritonus_share.jar"/> 
    35     <jar href="lib/tritonus-vorbis.jar"/> 
    36     <jar href="lib/vorbisspi1.0.2.jar"/> 
    37     <jar href="lib/concurrent.jar"/> 
    38     <jar href="lib/hessian-3.0.8.jar"/> 
    39         <jar href="lib/javax.servlet.jar"/> 
    40         <jar href="lib/org.mortbay.jetty.jar"/> 
    41         <jar href="lib/commons-httpclient-3.0-rc3.jar"/> 
    42         <jar href="lib/commons-codec-1.3.jar"/> 
     19                <j2se version="1.4+"/> 
     20        </resources> 
    4321         
    44         <jar href="lib/mina-core-0.9.5-SNAPSHOT.jar"/> 
    45         <jar href="lib/jstun-0.5.9.2.jar"/> 
    46         <jar href="lib/mp3spi1.9.4.jar"/> 
    47         <jar href="lib/jl1.0.jar"/> 
    48         <jar href="lib/commons-discovery.jar"/> 
    49         <jar href="lib/slf4j-log4j12.jar"/> 
     22        @resources@ 
    5023 
    51         <jar href="lib/jdic.jar"/> 
    52   </resources> 
    53   <resources os="Windows"> 
    54           <jar href="lib/windows/jdic_stub.jar"/> 
    55           <nativelib href="lib/windows/native_x86.jar"/> 
    56         </resources> 
    57         <resources os="SunOS" arch="sparc"> 
    58                 <jar href="lib/sunos/jdic_stub.jar"/> 
    59                 <nativelib href="lib/sunos/native_sparc.jar"/> 
    60         </resources> 
    61         <resources os="SunOS" arch="x86"> 
    62                 <jar href="lib/sunos/jdic_stub.jar"/> 
    63                 <nativelib href="lib/sunos/native_x86.jar"/> 
    64         </resources> 
    65         <resources os="Linux"> 
    66                 <jar href="lib/linux/jdic_stub.jar"/> 
    67                 <nativelib href="lib/linux/native_x86.jar"/> 
    68         </resources> 
    69  
    70   <application-desc main-class="org.kolaka.freecast.manager.gui.Main"> 
    71   </application-desc> 
     24  <application-desc main-class="org.kolaka.freecast.manager.gui.Main"/> 
    7225</jnlp> 
  • trunk/source/org/kolaka/freecast/node/swing/libfreecast.jnlp

    r810 r845  
    1414        </security> 
    1515 
    16         <resources> 
    17                 <jar href="lib/freecast-@project.version@.jar"/> 
    18                 <jar href="lib/freecast-etc.jar"/> 
    19  
    20                 <jar href="lib/commons-cli-1.0.jar"/> 
    21                 <jar href="lib/commons-collections-3.1.jar"/> 
    22                 <jar href="lib/commons-configuration-1.1RC2.jar"/> 
    23                 <jar href="lib/cortado-ovt-0.1.0.jar"/> 
    24                 <jar href="lib/commons-lang-2.0.jar"/> 
    25     <jar href="lib/commons-logging-1.1-RC5.jar"/> 
    26                 <jar href="lib/commons-io-1.0.jar"/> 
    27                 <jar href="lib/commons-beanutils.jar"/> 
    28                 <jar href="lib/jogg-0.0.7.jar"/> 
    29     <jar href="lib/jorbis-0.0.15.jar"/> 
    30     <jar href="lib/log4j-1.2.13.jar"/> 
    31     <jar href="lib/tritonus_share.jar"/> 
    32     <jar href="lib/tritonus-vorbis.jar"/> 
    33     <jar href="lib/vorbisspi1.0.2.jar"/> 
    34                 <jar href="lib/concurrent.jar"/> 
    35                 <jar href="lib/hessian-3.0.8.jar"/> 
    36                 <jar href="lib/commons-httpclient-3.0-rc3.jar"/> 
    37                 <jar href="lib/commons-codec-1.3.jar"/> 
    38                 <jar href="lib/commons-digester-1.7.jar"/> 
    39          
    40         <jar href="lib/mina-core-0.9.5-SNAPSHOT.jar"/> 
    41         <jar href="lib/jstun-0.5.9.2.jar"/> 
    42         <jar href="lib/commons-discovery.jar"/> 
    43         <jar href="lib/slf4j-log4j12.jar"/>              
    44                  
    45                 <jar href="lib/jdic.jar"/> 
    46         </resources> 
    47         <resources os="Windows"> 
    48                 <jar href="lib/windows/jdic_stub.jar"/> 
    49                 <nativelib href="lib/windows/jdic_native_x86.jar"/> 
    50         </resources> 
    51         <resources os="SunOS" arch="sparc"> 
    52                 <jar href="lib/sunos/jdic_stub.jar"/> 
    53                 <nativelib href="lib/sunos/jdic_native_sparc.jar"/> 
    54         </resources> 
    55         <resources os="SunOS" arch="x86"> 
    56                 <jar href="lib/sunos/jdic_stub.jar"/> 
    57                 <nativelib href="lib/sunos/jdic_native_x86.jar"/> 
    58         </resources> 
    59         <resources os="Linux"> 
    60                 <jar href="lib/linux/jdic_stub.jar"/> 
    61                 <nativelib href="lib/linux/jdic_native_x86.jar"/> 
    62         </resources> 
     16        @resources@ 
    6317 
    6418        <component-desc/>