Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
ddcc934
create netbeans project
Nov 18, 2014
cff3649
tambah login
Nov 18, 2014
63c810e
tambah role owner
Nov 18, 2014
0e064a7
tambahjdbc
Nov 18, 2014
d146453
bisa fetch dari database
Nov 20, 2014
b85caa4
lib folder added
filinamaria Nov 21, 2014
a72c789
coba gabung database
Nov 21, 2014
b5b8fce
coba gabung database
Nov 21, 2014
f50828e
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 21, 2014
6794cc4
fetch datas from database using beans
Nov 21, 2014
669518b
fetch datas from database using beans
Nov 21, 2014
598465f
delete unnecessary servlet files
Nov 21, 2014
56e0cce
sql
Nov 22, 2014
f8b55dc
posting data dibuat modular
Nov 22, 2014
b06345c
benerin db
Nov 22, 2014
43203a7
merge conflict
Nov 22, 2014
a08515f
addpost tanpa parameter
Nov 22, 2014
fd46afc
fixing error
Nov 22, 2014
130396e
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 22, 2014
06f128e
edit home, add getauthorpost
Nov 22, 2014
fec282c
move Owner to Role, move css to assets
Nov 22, 2014
a3048b4
edit html link to jsf link
Nov 22, 2014
b979de6
change db to blog
Nov 22, 2014
71fb678
create register, login without cookies
Nov 22, 2014
f07aa25
PublishPost added
filinamaria Nov 22, 2014
d130c85
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
filinamaria Nov 22, 2014
4113619
change css directory in publish post
filinamaria Nov 22, 2014
9ffeacb
add getContentPreview method to Post.java
filinamaria Nov 22, 2014
e903937
login cookie setengah jadi
Nov 23, 2014
72f2d89
Validasi tanggal belum di cek
Nov 23, 2014
0b3af6b
edit publishpost
filinamaria Nov 24, 2014
cd538d6
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
filinamaria Nov 24, 2014
756c3a6
modify publishpost
filinamaria Nov 24, 2014
0ffd1a8
Cek save
Nov 24, 2014
b5c8fc3
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 24, 2014
c828ea6
Commit sementara
Nov 24, 2014
e76fef6
login cookie, no logout
Nov 24, 2014
84c84f1
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 24, 2014
8c325ee
edit publishpost, editpost created
filinamaria Nov 24, 2014
400e7fe
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
filinamaria Nov 24, 2014
a680882
edit post
filinamaria Nov 24, 2014
c07a1c2
Add post tinggal author
Nov 24, 2014
ae99592
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 24, 2014
5f4fea0
editpost dan publishpost selesai
filinamaria Nov 24, 2014
8c7534b
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
filinamaria Nov 24, 2014
954faf1
login cookie, fix bbrp error, coba kasih nama author
Nov 24, 2014
3a7e6ed
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 24, 2014
ce011a2
edit css
filinamaria Nov 24, 2014
0fed715
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
filinamaria Nov 24, 2014
f0fbf41
edit css lagi
filinamaria Nov 24, 2014
0cdd5af
ganti @sessionscope menjadi request scope dan pindah addpost ke folde…
Nov 24, 2014
3765e80
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 24, 2014
19c2e76
edit publishpost
filinamaria Nov 24, 2014
5a66a13
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
filinamaria Nov 24, 2014
f4e1e5a
add viewpost.xhtml
filinamaria Nov 24, 2014
77d6abf
View Post udah, ajax on progress
filinamaria Nov 24, 2014
5ef41f5
load comment pakai ajax sudah bisa
filinamaria Nov 24, 2014
6c9cd16
fix bug cookie, css owner, active-user
Nov 24, 2014
dc73b48
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 24, 2014
feda556
author finish,soft-delete
Nov 24, 2014
55b6ce2
Add Status, Publish button
Nov 25, 2014
e90964f
edit View Post
filinamaria Nov 25, 2014
5f60af4
add getActiveUserEmail method in Posting class
filinamaria Nov 25, 2014
854c9cd
tambah admin.xhtml, css admin, pindah publishpost ke role, fix minor bug
Nov 25, 2014
0a69798
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 25, 2014
4017658
Set redirect log in
Nov 25, 2014
259e398
Set log in redirect
Nov 25, 2014
30e5d6d
merge conflict
Nov 25, 2014
3030ee3
merge conflict
Nov 25, 2014
cc0a959
merge conflict
Nov 25, 2014
c2ae8d5
edit layout owner.xhtml
filinamaria Nov 25, 2014
32e3a20
edit layout Admin.xhtml
filinamaria Nov 25, 2014
cf7fb57
edit layout
filinamaria Nov 25, 2014
f8799af
redirect login
Nov 25, 2014
2a3a87a
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 25, 2014
e40eafb
tambah kelas user,crud user,css table
Nov 25, 2014
e96afd8
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 25, 2014
386cae2
Anti masuk ke link tidak sesuai role, blum bisa klo blum login(error)
Nov 25, 2014
5525958
merge conflict
Nov 25, 2014
9e9fadf
merge conflict
Nov 25, 2014
cba442e
ViewPost pada smua role
Nov 25, 2014
9f49d90
ajax comment selesai, tpi masih aneh
filinamaria Nov 25, 2014
4e3c2c6
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
filinamaria Nov 25, 2014
e20a4fa
css diperbaiki
filinamaria Nov 25, 2014
4c7c8ce
perbaikan css footer
filinamaria Nov 25, 2014
cdf52fc
Fix link dan fungsi setiap role
Nov 25, 2014
2584344
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 25, 2014
3c40151
edit ajax
filinamaria Nov 25, 2014
c772383
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
filinamaria Nov 25, 2014
f5ba476
edit ViewPost
filinamaria Nov 25, 2014
51d75df
crud user,css,fix minor bug
Nov 25, 2014
1835b25
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Nov 25, 2014
67ae345
crud user baru bisa ambil info username
Nov 25, 2014
80a2150
crud user bisa add dan delete
Nov 25, 2014
756a2f9
validasi registry sudah
filinamaria Nov 26, 2014
22a3c94
resolve conflict
filinamaria Nov 26, 2014
c12442a
owner post delete
filinamaria Nov 26, 2014
13ad46e
edit home.xhtml
filinamaria Nov 26, 2014
d60cb26
tambah soft delete, bersihin codingan
Nov 26, 2014
129b436
perbaikin beberapa link
filinamaria Dec 1, 2014
091b940
resolve conflict
filinamaria Dec 1, 2014
6d8f833
resolve conflict
filinamaria Dec 1, 2014
8a98482
revisi dan finalisasi deletedPost
filinamaria Dec 1, 2014
9fa2c85
tes
Dec 1, 2014
319a08d
tes
Dec 1, 2014
c6d37b7
tes
Dec 1, 2014
bf3581c
delete fitur deleted post pada owner
filinamaria Dec 1, 2014
a705cf0
editor ga bisa restore post
Dec 1, 2014
9e2f9be
CRUD User
Dec 1, 2014
c186109
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Dec 1, 2014
fe73592
Database sql yang masing-masing punya 1 data
Dec 1, 2014
6764d45
tambah validasi email di register user di admin
Dec 1, 2014
915b02b
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Dec 1, 2014
19240e1
Deleted unnecessary file
Dec 1, 2014
e425a3c
Merge branch 'master' of https://github.com/IF3110-II-5/IF3110-02-Sim…
Dec 1, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/SImpleBlog/nbproject/private/
/SImpleBlog/build/
/SImpleBlog/dist/
71 changes: 71 additions & 0 deletions SImpleBlog/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="SImpleBlog" default="default" basedir=".">
<description>Builds, tests, and runs the project SImpleBlog.</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>
Binary file not shown.
111 changes: 111 additions & 0 deletions SImpleBlog/nbproject/ant-deploy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
Loading