|
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED - DO NOT EDIT ***
-->
<project name="SimpleUserRESTService-war-rest-build" basedir=".." xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:jaxrs="http://www.netbeans.org/ns/jax-rs/1">
<target name="-check-trim">
<condition property="do.trim">
<and>
<isset property="client.urlPart"/>
<length string="${client.urlPart}" when="greater" length="0"/>
</and>
</condition>
</target>
<target name="-trim-url" if="do.trim">
<pathconvert pathsep="/" property="rest.base.url">
<propertyset>
<propertyref name="client.url"/>
</propertyset>
<globmapper from="*${client.urlPart}" to="*/"/>
</pathconvert>
</target>
<target name="-spare-url" unless="do.trim">
<property name="rest.base.url" value="${client.url}"/>
</target>
<target name="test-restbeans" depends="run-deploy,-init-display-browser,-check-trim,-trim-url,-spare-url">
<replace file="${restbeans.test.file}" token="${base.url.token}" value="${rest.base.url}||${rest.application.path}"/>
<condition property="do.browse-url">
<istrue value="${display.browser}"/>
</condition>
<antcall target="browse-url"/>
</target>
<target name="browse-url" if="do.browse-url">
<nbbrowse url="${restbeans.test.url}"/>
</target>
<target name="check-rest-config-props" depends="-do-init">
<condition property="do-generate-rest-config">
<and>
<equals arg1="${rest.config.type}" arg2="ide"/>
<isset property="rest.resources.path"/>
</and>
</condition>
</target>
<target name="generate-rest-config" depends="check-rest-config-props" if="do-generate-rest-config">
<mkdir dir="${build.generated.sources.dir}/rest/org/netbeans/rest/application/config/"/>
<echo file="${build.generated.sources.dir}/rest/org/netbeans/rest/application/config/ApplicationConfig.java">/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.netbeans.rest.application.config;
/**
* This class is generated by the Netbeans IDE,
* and registers all REST root resources created in the project.
* Please, DO NOT EDIT this class unless you really need and
* understand the results of changes.
* It is safe to change REST resources path value of
* ApplicationPath annotation. It can be done also via UI action
* called on RESTful Web Services node ( REST Resources Configuration dialog ).
*
*/
@javax.ws.rs.ApplicationPath("${rest.resources.path}")
public class ApplicationConfig extends javax.ws.rs.core.Application {
}</echo>
</target>
</project>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a software developer in Toronto, Ontario who has programmed and studied mostly Java off and on since 2000.