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