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