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.
-->
<project name="suite-jnlp" basedir=".">
<!-- if jnlp.codebase is provided make both the app and the platform relative to it -->
<condition property="jnlp.codebase.app" value="${jnlp.codebase}app/" >
<isset property="jnlp.codebase" />
</condition> <!-- if not specified, assign all codebases to value suitable for jnlp-servlet.jar -->
<property name="jnlp.codebase" value="$$$$codebase" />
<property name="jnlp.codebase.app" value="$$$$codebase" />
<target name="-check-for-master.jnlp">
<available file="master.jnlp" property="master.jnlp.exists"/>
</target>
<target name="jnlp-init-generate-master" depends="-check-for-master.jnlp" unless="master.jnlp.exists">
<echo file="master.jnlp"><![CDATA[<?xmlversion="1.0"encoding="UTF-8"?>
<!DOCTYPE jnlp PUBLIC"-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN""http://java.sun.com/dtd/JNLP-6.0.dtd">
<jnlp spec="1.0+" codebase="${jnlp.codebase}"href="master.jnlp">
<information>
<title>$${app.title}</title>
<vendor>$${app.title} vendor</vendor>
<description>$${app.name} application</description>
<icon href="$${app.icon}"/>
</information>
<security><all-permissions/></security>
<resources> <!-- The following property is needed when running with unsigned jars: -->
<property name="netbeans.jnlp.fixPolicy" value="$${netbeans.jnlp.fixPolicy}"/>
<extension name='branding'href='branding.jnlp' /> <!-- The following line will be replaced with an automatically generated list of resources: --> <!--$${jnlp.resources}-->
</resources>
<resources os="Mac OS X">
<property name="jnlp.netbeans.user" value="$${user.home}/Library/Application Support/$${app.name}"/>
</resources>
<application-desc>
<argument>--branding</argument>
<argument>$${branding.token}</argument>
</application-desc>
</jnlp>
]]></echo>
<echo file="branding.jnlp"><![CDATA[<?xmlversion="1.0"encoding="UTF-8"?>
<!DOCTYPE jnlp PUBLIC"-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN""http://java.sun.com/dtd/JNLP-6.0.dtd">
<jnlp spec="1.0+" codebase="${jnlp.codebase}">
<information>
<title>$${app.title}</title>
<vendor>$${app.title} vendor</vendor>
<description>$${app.name} application</description>
<icon href="$${app.icon}"/>
</information>
$${jnlp.permissions}
<resources>
$${jnlp.branding.jars}
</resources>
<component-desc/>
</jnlp>
]]></echo>
</target>
<target name="jnlp-init" depends="jnlp-init-generate-master">
<fail unless="app.name">Must have set at least an application name ('app.name')</fail>
<target name="profile" depends="-profile-check,build-jnlp-local" description="Executes this suite as JNLP application under profiler" if="profiler.configured" unless="profiler.info.jvmargs.agent">
<startprofiler/>
<antcall target="run"/>
</target>
<target name="-check-for-jnlp-userdir">
<property name="jnlp.userdir" location="${user.home}/.nbapp-${app.name}"/>
<condition property="have.jnlp.userdir">
<and>
<isset property="app.name"/>
<available file="${jnlp.userdir}"type="dir"/>
</and>
</condition>
</target>
<target name="-clean-jnlp-userdir" depends="-check-for-jnlp-userdir" if="have.jnlp.userdir">
<property name="jnlp.userdir.bak" location="${jnlp.userdir}.bak"/>
<delete dir="${jnlp.userdir.bak}" failonerror="false"/>
<move file="${jnlp.userdir}" tofile="${jnlp.userdir.bak}" failonerror="false"/>
</target>
<target name="clean" depends="-clean-jnlp-userdir" description="Make sure default JNLP user directory is removed so run-jnlp will not get old test settings."/> <!-- #64249 -->
</project>
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
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 und die Messung sind noch experimentell.