Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IF3110-II-01/IF3110-03-Simple-Blog-Service Final #19

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/TubesWBD/build/
/TubesWBD/nbproject/private/
71 changes: 71 additions & 0 deletions TubesWBD/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="TubesWBD" default="default" basedir=".">
<description>Builds, tests, and runs the project TubesWBD.</description>
<import file="nbproject/build-impl.xml"/>
<!--

There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:

-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying

Example of pluging an obfuscator after the compilation could look like

<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>

For list of available properties check the imported
nbproject/build-impl.xml file.


Other way how to customize the build is by overriding existing main targets.
The target of interest are:

init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation

Example of overriding the target for project execution could look like

<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>

Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.

-->
</project>
141 changes: 141 additions & 0 deletions TubesWBD/build/generated-sources/jax-ws/service/AddComment.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@

package service;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for addComment complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="addComment">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="postid" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="nama" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="komentar" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "addComment", propOrder = {
"postid",
"nama",
"email",
"komentar"
})
public class AddComment {

protected String postid;
protected String nama;
protected String email;
protected String komentar;

/**
* Gets the value of the postid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPostid() {
return postid;
}

/**
* Sets the value of the postid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPostid(String value) {
this.postid = value;
}

/**
* Gets the value of the nama property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNama() {
return nama;
}

/**
* Sets the value of the nama property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNama(String value) {
this.nama = value;
}

/**
* Gets the value of the email property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmail() {
return email;
}

/**
* Sets the value of the email property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmail(String value) {
this.email = value;
}

/**
* Gets the value of the komentar property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKomentar() {
return komentar;
}

/**
* Sets the value of the komentar property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKomentar(String value) {
this.komentar = value;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

package service;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for addCommentResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="addCommentResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "addCommentResponse", propOrder = {
"_return"
})
public class AddCommentResponse {

@XmlElement(name = "return")
protected Boolean _return;

/**
* Gets the value of the return property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isReturn() {
return _return;
}

/**
* Sets the value of the return property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setReturn(Boolean value) {
this._return = value;
}

}
114 changes: 114 additions & 0 deletions TubesWBD/build/generated-sources/jax-ws/service/AddPost.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@

package service;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for addPost complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="addPost">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="judul" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="tanggal" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="konten" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "addPost", propOrder = {
"judul",
"tanggal",
"konten"
})
public class AddPost {

protected String judul;
protected String tanggal;
protected String konten;

/**
* Gets the value of the judul property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getJudul() {
return judul;
}

/**
* Sets the value of the judul property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setJudul(String value) {
this.judul = value;
}

/**
* Gets the value of the tanggal property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTanggal() {
return tanggal;
}

/**
* Sets the value of the tanggal property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTanggal(String value) {
this.tanggal = value;
}

/**
* Gets the value of the konten property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKonten() {
return konten;
}

/**
* Sets the value of the konten property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKonten(String value) {
this.konten = value;
}

}
Loading