Click here to Skip to main content
15,892,809 members
Articles / Web Development

A Simple Mobile Enterprise Application

Rate me:
Please Sign up or sign in to vote.
4.70/5 (6 votes)
30 May 2012CPOL6 min read 46.4K   4.4K   29  
How to make a simple, end-to-end, mobile, Java enterprise application including a RESTful web service and an Android client.
<?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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Canada Canada
I'm a software developer in Toronto, Ontario who has programmed and studied mostly Java off and on since 2000.

Comments and Discussions