author | František Kučera <franta-hg@frantovo.cz> |
Wed Jun 30 00:26:14 2010 +0200 (2010-06-30) | |
changeset 149 | 8238cdb4113a |
permissions | -rw-r--r-- |
franta-hg@75 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@75 | 2 |
<!-- |
franta-hg@75 | 3 |
*** GENERATED - DO NOT EDIT *** |
franta-hg@75 | 4 |
--> |
franta-hg@75 | 5 |
<project name="nekurak.net-web-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"> |
franta-hg@75 | 6 |
<target name="-check-trim"> |
franta-hg@75 | 7 |
<condition property="do.trim"> |
franta-hg@75 | 8 |
<and> |
franta-hg@75 | 9 |
<isset property="client.urlPart"/> |
franta-hg@75 | 10 |
<length string="${client.urlPart}" when="greater" length="0"/> |
franta-hg@75 | 11 |
</and> |
franta-hg@75 | 12 |
</condition> |
franta-hg@75 | 13 |
</target> |
franta-hg@75 | 14 |
<target name="-trim-url" if="do.trim"> |
franta-hg@75 | 15 |
<pathconvert pathsep="/" property="rest.base.url"> |
franta-hg@75 | 16 |
<propertyset> |
franta-hg@75 | 17 |
<propertyref name="client.url"/> |
franta-hg@75 | 18 |
</propertyset> |
franta-hg@75 | 19 |
<globmapper from="*${client.urlPart}" to="*/"/> |
franta-hg@75 | 20 |
</pathconvert> |
franta-hg@75 | 21 |
</target> |
franta-hg@75 | 22 |
<target name="-spare-url" unless="do.trim"> |
franta-hg@75 | 23 |
<property name="rest.base.url" value="${client.url}"/> |
franta-hg@75 | 24 |
</target> |
franta-hg@75 | 25 |
<target name="test-restbeans" depends="run-deploy,-init-display-browser,-check-trim,-trim-url,-spare-url"> |
franta-hg@75 | 26 |
<replace file="${restbeans.test.file}" token="${base.url.token}" value="${rest.base.url}||${rest.application.path}"/> |
franta-hg@75 | 27 |
<condition property="do.browse-url"> |
franta-hg@75 | 28 |
<istrue value="${display.browser}"/> |
franta-hg@75 | 29 |
</condition> |
franta-hg@75 | 30 |
<antcall target="browse-url"/> |
franta-hg@75 | 31 |
</target> |
franta-hg@75 | 32 |
<target name="browse-url" if="do.browse-url"> |
franta-hg@75 | 33 |
<nbbrowse url="${restbeans.test.url}"/> |
franta-hg@75 | 34 |
</target> |
franta-hg@75 | 35 |
<target name="check-rest-config-props" depends="-do-init"> |
franta-hg@75 | 36 |
<condition property="do-generate-rest-config"> |
franta-hg@75 | 37 |
<and> |
franta-hg@75 | 38 |
<equals arg1="${rest.config.type}" arg2="ide"/> |
franta-hg@75 | 39 |
<isset property="rest.resources.path"/> |
franta-hg@75 | 40 |
</and> |
franta-hg@75 | 41 |
</condition> |
franta-hg@75 | 42 |
</target> |
franta-hg@75 | 43 |
<target name="generate-rest-config" depends="check-rest-config-props" if="do-generate-rest-config"> |
franta-hg@75 | 44 |
<mkdir dir="${build.generated.sources.dir}/rest/org/netbeans/rest/application/config/"/> |
franta-hg@75 | 45 |
<echo file="${build.generated.sources.dir}/rest/org/netbeans/rest/application/config/ApplicationConfig.java">/* |
franta-hg@75 | 46 |
* To change this template, choose Tools | Templates |
franta-hg@75 | 47 |
* and open the template in the editor. |
franta-hg@75 | 48 |
*/ |
franta-hg@75 | 49 |
|
franta-hg@75 | 50 |
package org.netbeans.rest.application.config; |
franta-hg@75 | 51 |
/** |
franta-hg@75 | 52 |
* This class is generated by the Netbeans IDE, |
franta-hg@75 | 53 |
* and registers all REST root resources created in the project. |
franta-hg@75 | 54 |
* Please, DO NOT EDIT this class ! |
franta-hg@75 | 55 |
*/ |
franta-hg@75 | 56 |
@javax.ws.rs.ApplicationPath("${rest.resources.path}") |
franta-hg@75 | 57 |
public class ApplicationConfig extends javax.ws.rs.core.Application { |
franta-hg@75 | 58 |
}</echo> |
franta-hg@75 | 59 |
</target> |
franta-hg@75 | 60 |
</project> |