Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Showing
with 2085 additions and 0 deletions
OjekOnlineApp/build/web/img/motaraido.png

12.4 KiB

OjekOnlineApp/build/web/img/pen.png

18.3 KiB

OjekOnlineApp/build/web/img/profilepic.png

12.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
<path fill="#fff" stroke="#ccc" d="M 12,2.5 14.4,9.5 21.5,9.5 15.8,13.75 18.5,21.5 12,16.625 5.5,21.5 8.2,13.75 2.5,9.5 9.6,9.5 z"/>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
<path fill="#311B92" stroke="#000" d="M 12,2.5 14.4,9.5 21.5,9.5 15.8,13.75 18.5,21.5 12,16.625 5.5,21.5 8.2,13.75 2.5,9.5 9.6,9.5 z"/>
</svg>
File added
File added
File added
<%
// New location to be redirected
response.setStatus(response.SC_MOVED_TEMPORARILY);
response.setHeader("Location", "Login");
%>
\ No newline at end of file
function loginValidation() {
var username = document.forms["loginform"]["username"];
var pwd = document.forms["loginform"]["password"];
var usrVerify = Validate(username, "empty");
var pwdVerify = Validate(pwd, "empty");
return (usrVerify && pwdVerify);
}
function editProfileValidation() {
var name = document.forms["editprofile-form"]["your-name"];
var phone = document.forms["editprofile-form"]["phone-number"];
var nameVerify = Validate(name, "empty", 0, 20, "length");
var phoneVerify = Validate(phone, "empty", 9, 12, "length");
return (nameVerify && phoneVerify);
}
function Validate(inputArea, type1, min = 0, max = 0, type2 = null, type3 = null) {
var error = GetErrorMessage(inputArea.value, type1, min, max);
if(error === "") {
if (type2 != null) {
error = GetErrorMessage(inputArea.value, type2, min, max);
console.log(type2 + "length");
}
if (error === "") {
if (type3 != null) {
error = GetErrorMessage(inputArea.value, type3, min, max);
}
}
}
if(error !== "" && inputArea.nextElementSibling === null) {
var errorEl = document.createElement("p");
errorEl.innerHTML = error;
errorEl.className = "error";
insertAfterElement(errorEl, inputArea);
inputArea.addEventListener("blur", function() {
var error = GetErrorMessage(inputArea.value, type1, min, max);
if(error === "") {
if (type2 != null) {
error = GetErrorMessage(inputArea.value, type2, min, max);
}
if (error === "") {
if (type3 != null) {
error = GetErrorMessage(inputArea.value, type3, min, max);
}
}
}
if (error === ""){
this.nextSibling.remove();
}
},true);
}
return (error === "");
}
function insertAfterElement(el, src) {
src.parentNode.insertBefore(el, src.nextSibling);
}
function GetErrorMessage(textArea, type, min = 0, max = 0) {
var validateText = "";
switch(type) {
case "empty" :
if(isEmpty(textArea)) {
validateText = "Fill in the field";
}
break;
case "email" :
if(!isEmail(textArea)) {
validatedText = "Invalid Email Address";
}
break;
case "number" :
if(isNumber(textArea)){
validateText = "Fill in with only number";
}
break;
case "length" :
if (!isLengthEqual(textArea,min,max)){
validateText = "Character must be between " + min.toString() + " and " + max.toString() + " long";
}
break;
}
return validateText;
}
function isEmpty(textArea) {
return (textArea.match(/^s+$/) || textArea == "");
}
function isNumber(textArea) {
return (!isNaN(textArea));
}
function isLengthEqual(textArea, min, max){
return (textArea.length >= min && textArea.length <= max);
}
function isEmail(textArea) {
return (textArea.match(/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+)+/));
}
\ No newline at end of file
function tabActive(tag) {
var tabUser = document.getElementById('user-his');
var tabDriver = document.getElementById('driver-his');
var order = document.getElementsByClassName('order-list');
var driver = document.getElementsByClassName('driver-list');
if (tag == 'user') {
order[0].classList.add("active-list");
driver[0].classList.remove("active-list");
tabUser.classList.add('active');
tabDriver.classList.remove('active');
}
else {
driver[0].classList.add("active-list");
order[0].classList.remove("active-list");
tabDriver.classList.add('active');
tabUser.classList.remove('active');
}
}
tabActive('user');
function hideThis(user) {
updateHide(user);
console.log(user[0]);
}
function updateHide(history)
{
var data = "user=" + history[0] + "&driver=" + history[1] + "&date=" + history[4];
var xhr;
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
} else if (window.ActiveXObject) {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
xhr.open("GET", "/history/update", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(data);
}
\ No newline at end of file
var prefDriver = document.getElementById("pref-driver");
var otherDriver = document.getElementById("other-driver");
var driverSumRating = [];
var driverCountRating = [];
var driverNameList = [];
for (var i = 0; i < driverArr.length; i++) {
for(var j = 0; j < ratingArr.length; j++) {
if(driverArr[i] === ratingArr[j]["usernameDriver"]){
driverSumRating[driverArr[i]] = (driverSumRating[driverArr[i]] === undefined) ? parseFloat(ratingArr[j]["rating"]) : driverSumRating[driverArr[i]] + parseFloat(ratingArr[j]["rating"]);
driverCountRating[driverArr[i]] = (driverCountRating[driverArr[i]] === undefined) ? 1 : driverCountRating[driverArr[i]]+1;
}
}
for(var k = 0; k < driverNameArr.length; k++) {
if(driverArr[i] === driverNameArr[k]["username"]){
driverNameList[driverArr[i]] = driverNameArr[k]["fullname"];
break;
}
}
}
for(var j = 0; j < ratingArr.length; j++) {
if(preferredDriver === ratingArr[j]["usernameDriver"]){
driverSumRating[preferredDriver] = (driverSumRating[preferredDriver] === undefined) ? parseFloat(ratingArr[j]["rating"]) : driverSumRating[preferredDriver] + parseFloat(ratingArr[j]["rating"]);
driverCountRating[preferredDriver] = (driverCountRating[preferredDriver] === undefined) ? 1 : driverCountRating[preferredDriver]+1;
}
}
for(var k = 0; k < driverNameArr.length; k++) {
if(preferredDriver === driverNameArr[k]["username"]){
driverNameList[preferredDriver] = driverNameArr[k]["fullname"];
break;
}
}
if(preferredDriver !== "") {
CreateDriverDisplay(prefDriver, preferredDriver);
} else {
CreateNotFoundDisplay(prefDriver);
}
if(driverArr.length > 0) {
for (var i = 0; i < driverArr.length; i++) {
CreateDriverDisplay(otherDriver, driverArr[i]);
}
} else {
CreateNotFoundDisplay(otherDriver);
}
function CreateDriverDisplay(driverType, driverUsrName) {
var newForm = driverType.appendChild(document.createElement("form"));
var newContainer = newForm.appendChild(document.createElement("div"));
var newImg = newContainer.appendChild(document.createElement("img"));
var newName = newContainer.appendChild(document.createElement("div"));
var newRating = newContainer.appendChild(document.createElement("div"));
var postUsrName = newContainer.appendChild(document.createElement("input"));
var newPickLoc = newContainer.appendChild(document.createElement("input"));
var newDest = newContainer.appendChild(document.createElement("input"));
var newBtn = newContainer.appendChild(document.createElement("input"));
var avgRating = (driverSumRating[driverUsrName]/driverCountRating[driverUsrName]).toFixed(1).toString();
newForm.setAttribute('method', 'post');
newForm.setAttribute('action', '/CompleteOrder');
newContainer.classList.add("driver-content");
newImg.classList.add("driver-pic");
newImg.setAttribute('src', '/public/img/' + driverUsrName);
newName.classList.add("driver-name-disp");
newName.innerHTML = driverNameList[driverUsrName];
newRating.classList.add("driver-rating-disp");
newRating.innerHTML = "" + avgRating + " <span class='vote-disp'>(" + driverCountRating[driverUsrName] + " votes)</span>";
postUsrName.setAttribute('type', 'hidden');
postUsrName.setAttribute('name', 'driver-username');
postUsrName.setAttribute('value', driverUsrName);
newPickLoc.setAttribute('type','hidden');
newPickLoc.setAttribute('name','pickLoc');
newPickLoc.setAttribute('value', pickLoc);
newDest.setAttribute('type','hidden');
newDest.setAttribute('name','dest');
newDest.setAttribute('value', dest);
newBtn.classList.add("accept-button");
newBtn.classList.add("select-driver-btn");
newBtn.setAttribute('type','submit');
newBtn.setAttribute('value','Select Driver');
}
function CreateNotFoundDisplay(driverType) {
var newContainer = driverType.appendChild(document.createElement("div"));
newContainer.classList.add("driver-not-found");
newContainer.innerHTML = "Nothing to display.";
}
\ No newline at end of file
function checkData(name, element)
{
var data = "?" + name + "=" + document.forms["signupform"][name].value;
var xhr;
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
} else if (window.ActiveXObject) {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
xhr.open("GET", "/validation" + data, true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(null);
xhr.onload = function() {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
if (xhr.responseText === 'OK') {
document.getElementById(element).innerHTML = "";
} else {
document.getElementById(element).innerHTML = "X";
}
}
else {
alert('There was a problem with the request.');
}
}
}
}
function signupValidation() {
var username = document.forms["signupform"]["username"];
var password = document.forms["signupform"]["password"];
var cpassword = document.forms["signupform"]["confirm-password"];
var email = document.forms["signupform"]["email"];
var fullname = document.forms["signupform"]["your-name"];
var phone = document.forms["signupform"]["phone"];
var usrVerify = Validate(username, "empty");
var pwdVerify = Validate(password, "empty");
var cpwdVerify = Validate(cpassword, "empty");
var emailVerify = Validate(email, "empty", 0, 0, "email");
var fullnameVerify = Validate(fullname, "empty", 0, 20, "length");
var phoneVerify = Validate(phone, "empty", 9, 12, "length");
return (usrVerify && pwdVerify && cpwdVerify && emailVerify && fullnameVerify && phoneVerify);
}
\ No newline at end of file
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 04, 2017 at 07:58 AM
-- Server version: 10.1.25-MariaDB
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `ojek_account`
--
-- --------------------------------------------------------
--
-- Table structure for table `account`
--
CREATE TABLE `account` (
`username` varchar(30) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(30) NOT NULL,
`access_token` varchar(20) DEFAULT NULL,
`expire` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `account`
--
INSERT INTO `account` (`username`, `email`, `password`, `access_token`, `expire`) VALUES
('dimjervin', 'marjer03dim@gmail.com', 'dimjer', '', 0),
('vinjerdim', 'marjer17dim@gmail.com', 'vinjer', '', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `account`
--
ALTER TABLE `account`
ADD PRIMARY KEY (`username`);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `account`
--
ALTER TABLE `account`
ADD CONSTRAINT `username_constraint` FOREIGN KEY (`username`) REFERENCES `ojek_online`.`account` (`username`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 04, 2017 at 07:58 AM
-- Server version: 10.1.25-MariaDB
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `ojek_online`
--
-- --------------------------------------------------------
--
-- Table structure for table `account`
--
CREATE TABLE `account` (
`account_id` int(11) NOT NULL,
`full_name` varchar(50) NOT NULL,
`username` varchar(30) NOT NULL,
`email` varchar(50) NOT NULL,
`phone` varchar(20) NOT NULL,
`is_driver` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `account`
--
INSERT INTO `account` (`account_id`, `full_name`, `username`, `email`, `phone`, `is_driver`) VALUES
(1, 'Marvin Jerremy', 'vinjerdim', 'marjer17dim@gmail.com', '081322198520', 1),
(2, 'Jerremy Budiman', 'dimjervin', 'marjer03dim@gmail.com', '081322198520', 0);
-- --------------------------------------------------------
--
-- Table structure for table `transaction`
--
CREATE TABLE `transaction` (
`transaction_id` int(11) NOT NULL,
`passenger_id` int(11) DEFAULT NULL,
`driver_id` int(11) DEFAULT NULL,
`pick_location` varchar(50) NOT NULL,
`dest_location` varchar(50) NOT NULL,
`date` date NOT NULL,
`stars` tinyint(4) NOT NULL,
`review` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `account`
--
ALTER TABLE `account`
ADD PRIMARY KEY (`account_id`),
ADD UNIQUE KEY `username` (`username`);
--
-- Indexes for table `transaction`
--
ALTER TABLE `transaction`
ADD PRIMARY KEY (`transaction_id`),
ADD KEY `driver_id_constraint` (`driver_id`),
ADD KEY `passenger_id_constraint` (`passenger_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `account`
--
ALTER TABLE `account`
MODIFY `account_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `transaction`
--
ALTER TABLE `transaction`
MODIFY `transaction_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `transaction`
--
ALTER TABLE `transaction`
ADD CONSTRAINT `driver_id_constraint` FOREIGN KEY (`driver_id`) REFERENCES `account` (`account_id`) ON DELETE SET NULL ON UPDATE CASCADE,
ADD CONSTRAINT `passenger_id_constraint` FOREIGN KEY (`passenger_id`) REFERENCES `account` (`account_id`) ON DELETE SET NULL ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) 2008, 2016 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
Contributor(s):
-->
<project default="-deploy-ant" basedir=".">
<target name="-init-cl-deployment-env" if="deploy.ant.enabled">
<property file="${deploy.ant.properties.file}" />
<available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
<available file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" property="glassfish.web.present"/>
<available file="${deploy.ant.resource.dir}" property="has.setup"/>
<tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
</target>
<target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
<tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
<copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
<!-- The doctype triggers resolution which can fail -->
<replace file="${temp.sun.web}">
<replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
<replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
</replace>
<replace file="${temp.sun.web}">
<replacetoken><![CDATA[<sun-web-app]]></replacetoken>
<replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
</replace>
<xmlproperty file="${temp.sun.web}" validate="false">
</xmlproperty>
<delete file="${temp.sun.web}"/>
<condition property="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
<isset property="sun-web-app.context-root"/>
</condition>
<condition property="deploy.context.root.argument" value="&amp;contextroot=${sun-web-app.context-root}" else="/${ant.project.name}">
<isset property="sun-web-app.context-root"/>
</condition>
</target>
<target name="-parse-glassfish-web" depends="-init-cl-deployment-env" if="glassfish.web.present">
<tempfile prefix="gfv3" property="temp.gf.web" destdir="${java.io.tmpdir}"/>
<copy file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" tofile="${temp.gf.web}"/>
<!-- The doctype triggers resolution which can fail -->
<replace file="${temp.gf.web}">
<replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
<replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
</replace>
<replace file="${temp.gf.web}">
<replacetoken><![CDATA[<glassfish-web-app]]></replacetoken>
<replacevalue><![CDATA[--> <glassfish-web-app]]></replacevalue>
</replace>
<xmlproperty file="${temp.gf.web}" validate="false">
</xmlproperty>
<delete file="${temp.gf.web}"/>
<condition property="deploy.ant.client.url" value="${gfv3.url}${glassfish-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
<isset property="glassfish-web-app.context-root"/>
</condition>
<condition property="deploy.context.root.argument" value="&amp;contextroot=${glassfish-web-app.context-root}" else="/${ant.project.name}">
<isset property="glassfish-web-app.context-root"/>
</condition>
</target>
<target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
<property name="deploy.context.root.argument" value=""/>
</target>
<target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
<tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
<mkdir dir="${gfv3.resources.dir}"/>
<mkdir dir="${gfv3.resources.dir}/META-INF"/>
<copy todir="${gfv3.resources.dir}/META-INF">
<fileset dir="${deploy.ant.resource.dir}"/>
</copy>
<jar destfile="${deploy.ant.archive}" update="true">
<fileset dir="${gfv3.resources.dir}"/>
</jar>
<delete dir="${gfv3.resources.dir}"/>
</target>
<target name="-deploy-ant" depends="-parse-glassfish-web, -parse-sun-web, -no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
<antcall target="-deploy-without-pw"/>
<antcall target="-deploy-with-pw"/>
</target>
<target name="-deploy-without-pw" unless="gfv3.password">
<echo message="Deploying ${deploy.ant.archive}"/>
<tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
<get src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
dest="${gfv3.results.file}"/>
<delete file="${gfv3.results.file}"/>
</target>
<target name="-deploy-with-pw" if="gfv3.password">
<echo message="Deploying ${deploy.ant.archive}"/>
<tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
<get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
dest="${gfv3.results.file}"/>
<delete file="${gfv3.results.file}"/>
</target>
<target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
<antcall target="-undeploy-without-pw"/>
<antcall target="-undeploy-with-pw"/>
</target>
<target name="-undeploy-without-pw" unless="gfv3.password">
<echo message="Undeploying ${deploy.ant.archive}"/>
<tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<get src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
dest="${gfv3.results.file}"/>
<delete file="${gfv3.results.file}"/>
</target>
<target name="-undeploy-with-pw" if="gfv3.password">
<echo message="Undeploying ${deploy.ant.archive}"/>
<tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
<get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
dest="${gfv3.results.file}"/>
<delete file="${gfv3.results.file}"/>
</target>
</project>
This diff is collapsed.
build.xml.data.CRC32=be0bfc3e
build.xml.script.CRC32=207d71c7
build.xml.stylesheet.CRC32=651128d4@1.77.1.1
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=be0bfc3e
nbproject/build-impl.xml.script.CRC32=57a3d382
nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.77.1.1
deploy.ant.properties.file=C:\\Users\\VINJERDIM\\AppData\\Roaming\\NetBeans\\8.2\\config\\GlassFishEE6\\Properties\\gfv31163477122.properties
j2ee.platform.is.jsr109=true
j2ee.server.domain=C:/glassfish5/glassfish/domains/ojekonline
j2ee.server.home=C:/glassfish5/glassfish
j2ee.server.instance=[C:\\glassfish5\\glassfish;C:\\glassfish5\\glassfish\\domains\\ojekonline]deployer:gfv3ee6wc:localhost:4848
j2ee.server.middleware=C:/glassfish5
user.properties.file=C:\\Users\\VINJERDIM\\AppData\\Roaming\\NetBeans\\8.2\\build.properties