Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
<!-- default jars that we do not want to sign and pack -->
<selector id="extensions" >
<filename name="**/*jh*.jar" />
</selector>
<selector id="no-extensions" >
<not>
<selector refid="extensions" />
</not>
</selector>
<!-- This target fills in the content of file nb-launch.jnlp. Scans all the available jar files and adds entries to the .jnlp file.
-->
<target depends="copy-to-release, create-jnlp-jars" name="create-config-base"> <!-- This target creates the end of nb-launch.jnlp file -->
<path id="jarfiles">
<fileset dir="release">
<include name="*.jar"/> <!-- do not enumerate extensions-->
<selector refid="no-extensions" />
</fileset>
</path>
<property location="${nb_all}/nbbuild/installer/jnlp/release/" name="dirname"/> <!-- save directory name for replacing back -->
<replace file="release/nb-launch.jnlp" token="${dirname}" value="D#I#R#_#N#A#M#E"/>
<pathconvert dirsep="${file.separator}" pathsep="" property="jar-files-list" refid="jarfiles"/>
<echo append="true" file="release/nb-launch.jnlp" message="@@@${jar-files-list}%%%"/>
<echo message="Replacing ${dirname}"/>
<replace file="release/nb-launch.jnlp" token="${dirname}${file.separator}" value="@@@###"/>
<replace file="release/nb-launch.jnlp" token="@@@@@@" value=""/>
<replace file="release/nb-launch.jnlp" token="@@@">
<replacevalue><![CDATA["/>
]]></replacevalue>
</replace>
<replace file="release/nb-launch.jnlp" token="%%%">
<replacevalue><![CDATA["/>
]]></replacevalue>
</replace>
<replace file="release/nb-launch.jnlp" token="###">
<replacevalue><![CDATA[ <jar href="]]>
</replace>
<echo append="true" file="release/nb-launch.jnlp" message="${jnlp.extra.properties}"/>
<echo append="true" file="release/nb-launch.jnlp">
<![CDATA[
</resources>
<application-desc main-class="org.netbeans.jnlp.Main"/>
</jnlp>
]]></echo> <!-- replace back accidentally replaced name of the directory -->
<replace file="release/nb-launch.jnlp" token="D#I#R#_#N#A#M#E" value="${dirname}${file.separator}"/>
<echo message="JNLP file release/nb-launch.jnlp has been generated. You can pass it to javaws." />
</target>
<target depends="jars,generate-keystore" name="create-jnlp-jars">
<mkdir dir="release"/>
<copy flatten="true" todir="release">
<fileset dir="jars">
<include name="**/*.jar"/> <!-- we do not support autoupdate in webstart -->
<include name="**/org-netbeans-modules-autoupdate.jar" />
</fileset>
</copy>
<!-- now they can be signed -->
<signjar alias="${jnlp.signjar.alias}" keystore="${jnlp.signjar.keystore}" storepass="${jnlp.signjar.password}">
<fileset dir=".">
<include name="release/*.jar"/>
<selector refid="no-extensions" />
</fileset>
</signjar>
</target>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.