Skip to content

Commit ff38af4

Browse files
author
Subhankar
committed
First Commit
0 parents  commit ff38af4

File tree

103 files changed

+29573
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+29573
-0
lines changed

build.xml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- You may freely edit this file. See commented blocks below for -->
3+
<!-- some examples of how to customize the build. -->
4+
<!-- (If you delete it and reopen the project it will be recreated.) -->
5+
<!-- By default, only the Clean and Build commands use this build script. -->
6+
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7+
<!-- the Compile on Save feature is turned off for the project. -->
8+
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9+
<!-- in the project's Project Properties dialog box.-->
10+
<project name="CabBooking" default="default" basedir=".">
11+
<description>Builds, tests, and runs the project CabBooking.</description>
12+
<import file="nbproject/build-impl.xml"/>
13+
<!--
14+
15+
There exist several targets which are by default empty and which can be
16+
used for execution of your tasks. These targets are usually executed
17+
before and after some main targets. They are:
18+
19+
-pre-init: called before initialization of project properties
20+
-post-init: called after initialization of project properties
21+
-pre-compile: called before javac compilation
22+
-post-compile: called after javac compilation
23+
-pre-compile-single: called before javac compilation of single file
24+
-post-compile-single: called after javac compilation of single file
25+
-pre-compile-test: called before javac compilation of JUnit tests
26+
-post-compile-test: called after javac compilation of JUnit tests
27+
-pre-compile-test-single: called before javac compilation of single JUnit test
28+
-post-compile-test-single: called after javac compilation of single JUunit test
29+
-pre-dist: called before archive building
30+
-post-dist: called after archive building
31+
-post-clean: called after cleaning build products
32+
-pre-run-deploy: called before deploying
33+
-post-run-deploy: called after deploying
34+
35+
Example of pluging an obfuscator after the compilation could look like
36+
37+
<target name="-post-compile">
38+
<obfuscate>
39+
<fileset dir="${build.classes.dir}"/>
40+
</obfuscate>
41+
</target>
42+
43+
For list of available properties check the imported
44+
nbproject/build-impl.xml file.
45+
46+
47+
Other way how to customize the build is by overriding existing main targets.
48+
The target of interest are:
49+
50+
init-macrodef-javac: defines macro for javac compilation
51+
init-macrodef-junit: defines macro for junit execution
52+
init-macrodef-debug: defines macro for class debugging
53+
do-dist: archive building
54+
run: execution of project
55+
javadoc-build: javadoc generation
56+
57+
Example of overriding the target for project execution could look like
58+
59+
<target name="run" depends="<PROJNAME>-impl.jar">
60+
<exec dir="bin" executable="launcher.exe">
61+
<arg file="${dist.jar}"/>
62+
</exec>
63+
</target>
64+
65+
Notice that overridden target depends on jar target and not only on
66+
compile target as regular run target does. Again, for list of available
67+
properties which you can use check the target you are overriding in
68+
nbproject/build-impl.xml file.
69+
70+
-->
71+
</project>

cb.sql

+317
Large diffs are not rendered by default.

libs/activation.jar

53.9 KB
Binary file not shown.

libs/gson-2.8.1.jar

227 KB
Binary file not shown.

libs/mail.jar

451 KB
Binary file not shown.

nbproject/ant-deploy.xml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4+
5+
Copyright (c) 2006, 2016 Oracle and/or its affiliates. All rights reserved.
6+
7+
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
8+
Other names may be trademarks of their respective owners.
9+
10+
The contents of this file are subject to the terms of either the GNU
11+
General Public License Version 2 only ("GPL") or the Common
12+
Development and Distribution License("CDDL") (collectively, the
13+
"License"). You may not use this file except in compliance with the
14+
License. You can obtain a copy of the License at
15+
http://www.netbeans.org/cddl-gplv2.html
16+
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
17+
specific language governing permissions and limitations under the
18+
License. When distributing the software, include this License Header
19+
Notice in each file and include the License file at
20+
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
21+
particular file as subject to the "Classpath" exception as provided
22+
by Oracle in the GPL Version 2 section of the License file that
23+
accompanied this code. If applicable, add the following below the
24+
License Header, with the fields enclosed by brackets [] replaced by
25+
your own identifying information:
26+
"Portions Copyrighted [year] [name of copyright owner]"
27+
28+
If you wish your version of this file to be governed by only the CDDL
29+
or only the GPL Version 2, indicate your decision by adding
30+
"[Contributor] elects to include this software in this distribution
31+
under the [CDDL or GPL Version 2] license." If you do not indicate a
32+
single choice of license, a recipient has the option to distribute
33+
your version of this file under either the CDDL, the GPL Version 2 or
34+
to extend the choice of license to its licensees as provided above.
35+
However, if you add GPL Version 2 code and therefore, elected the GPL
36+
Version 2 license, then the option applies only if the new code is
37+
made subject to such option by the copyright holder.
38+
39+
Contributor(s):
40+
-->
41+
<project default="-deploy-ant" basedir=".">
42+
<target name="-init" if="deploy.ant.enabled">
43+
<property file="${deploy.ant.properties.file}"/>
44+
<tempfile property="temp.module.folder" prefix="tomcat" destdir="${java.io.tmpdir}"/>
45+
<unwar src="${deploy.ant.archive}" dest="${temp.module.folder}">
46+
<patternset includes="META-INF/context.xml"/>
47+
</unwar>
48+
<xmlproperty file="${temp.module.folder}/META-INF/context.xml"/>
49+
<delete dir="${temp.module.folder}"/>
50+
</target>
51+
<target name="-check-credentials" if="deploy.ant.enabled" depends="-init">
52+
<fail message="Tomcat password has to be passed as tomcat.password property.">
53+
<condition>
54+
<not>
55+
<isset property="tomcat.password"/>
56+
</not>
57+
</condition>
58+
</fail>
59+
</target>
60+
<target name="-deploy-ant" if="deploy.ant.enabled" depends="-init,-check-credentials">
61+
<echo message="Deploying ${deploy.ant.archive} to ${Context(path)}"/>
62+
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"
63+
classpath="${tomcat.home}/server/lib/catalina-ant.jar"/>
64+
<deploy url="${tomcat.url}/manager" username="${tomcat.username}"
65+
password="${tomcat.password}" path="${Context(path)}"
66+
war="${deploy.ant.archive}"/>
67+
<property name="deploy.ant.client.url" value="${tomcat.url}${Context(path)}"/>
68+
</target>
69+
<target name="-undeploy-ant" if="deploy.ant.enabled" depends="-init,-check-credentials">
70+
<echo message="Undeploying ${Context(path)}"/>
71+
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"
72+
classpath="${tomcat.home}/server/lib/catalina-ant.jar"/>
73+
<undeploy url="${tomcat.url}/manager" username="${tomcat.username}"
74+
password="${tomcat.password}" path="${Context(path)}"/>
75+
</target>
76+
</project>

0 commit comments

Comments
 (0)