alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (project.xml)

This example Java source code file (project.xml) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

and, any, contributors, copyright, including, limited, redistributions, the, this

The project.xml Java example source code

<?xml version="1.0" encoding="UTF-8"?>

<!--
 Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:

   - Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.

   - Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.

   - Neither the name of Oracle nor the names of its
     contributors may be used to endorse or promote products derived
     from this software without specific prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->

<project xmlns="http://www.netbeans.org/ns/project/1">
    <type>org.netbeans.modules.ant.freeform
    <configuration>
        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
            <name>Scriptpad
            <properties>
                <property-file>user.build.properties
                <property-file>build.properties
                <property name="nbjdk.bootclasspath">${nbjdk.home}/jre/lib/rt.jar
            </properties>
            <folders>
                <source-folder>
                    <label>JDK Demo
                    <location>${main.dir}
                </source-folder>
                <source-folder>
                    <label>Sources
                    <type>java
                    <location>${src.dir}
                </source-folder>
                <build-folder>
                    <location>${build.dir}
                </build-folder>
            </folders>
            <ide-actions>
                <action name="build">
                    <target>jar
                </action>
                <action name="clean">
                    <target>clean
                </action>
                <action name="rebuild">
                    <target>clean
                    <target>jar
                </action>
                <action name="run">
                    <target>run
                </action>
                <action name="javadoc">
                    <script>nbproject/netbeans-targets.xml
                    <target>show-javadoc
                </action>
                <action name="debug">
                    <script>nbproject/netbeans-targets.xml
                    <target>debug
                </action>
                <action name="compile.single">
                    <script>nbproject/file-targets.xml
                    <target>compile-selected
                    <context>
                        <property>includes
                        <folder>${src.dir}
                        <pattern>\.java$
                        <format>relative-path
                        <arity>
                            <separated-files>,
                        </arity>
                    </context>
                </action>
                <action name="run.single">
                    <target>run
                    <context>
                        <property>main.class
                        <folder>${src.dir}
                        <pattern>\.java$
                        <format>java-name
                        <arity>
                            <one-file-only/>
                        </arity>
                    </context>
                </action>
                <action name="debug.single">
                    <script>nbproject/netbeans-targets.xml
                    <target>debug
                    <context>
                        <property>main.class
                        <folder>${src.dir}
                        <pattern>\.java$
                        <format>java-name
                        <arity>
                            <one-file-only/>
                        </arity>
                    </context>
                </action>
                <action name="debug.fix">
                    <script>nbproject/netbeans-targets.xml
                    <target>debug-fix
                    <context>
                        <property>class
                        <folder>${src.dir}
                        <pattern>\.java$
                        <format>relative-path-noext
                        <arity>
                            <one-file-only/>
                        </arity>
                    </context>
                </action>
            </ide-actions>
            <export>
                <type>jar
                <location>${jar}
                <build-target>jar
                <clean-target>clean
            </export>
            <view>
                <items>
                    <source-folder style="packages">
                        <label>Sources
                        <location>${src.dir}
                    </source-folder>
                    <source-file>
                        <location>${main.dir}/README.txt
                    </source-file>
                </items>
                <context-menu>
                    <ide-action name="build"/>
                    <ide-action name="rebuild"/>
                    <ide-action name="clean"/>
                    <ide-action name="javadoc"/>
                    <separator/>
                    <ide-action name="run"/>
                    <ide-action name="debug"/>
                </context-menu>
            </view>
            <subprojects/>
        </general-data>
        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
            <compilation-unit>
                <package-root>${src.dir}
                <classpath mode="compile">${cp}
                <classpath mode="execute">${run.cp}
                <classpath mode="boot">${nbjdk.bootclasspath}
                <built-to>${classes.dir}
                <built-to>${jar}
                <javadoc-built-to>${javadoc.dir}
                <source-level>1.5
            </compilation-unit>
        </java-data>
    </configuration>
</project>

Other Java examples (source code examples)

Here is a short list of links related to this Java project.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.