Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions 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="FileReader" default="default" basedir=".">
<description>Builds, tests, and runs the project FileReader.</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>
2 changes: 2 additions & 0 deletions build/web/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 2 additions & 0 deletions build/web/META-INF/context.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/FileReader"/>
Binary file added build/web/WEB-INF/classes/auth/forgot.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/auth/forgot2.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/auth/login.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/auth/register.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/files/read.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/files/upload.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/forms/finish.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/forms/form.class
Binary file not shown.
Binary file added build/web/WEB-INF/lib/fontbox-2.0.9.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/web/WEB-INF/lib/pdfbox-2.0.9.jar
Binary file not shown.
Binary file added build/web/WEB-INF/lib/pdfbox-app-2.0.9.jar
Binary file not shown.
Binary file added build/web/WEB-INF/lib/pdfbox-tools-2.0.9.jar
Binary file not shown.
Binary file added build/web/WEB-INF/lib/preflight-2.0.9.jar
Binary file not shown.
Binary file added build/web/WEB-INF/lib/preflight-app-2.0.9.jar
Binary file not shown.
Binary file added build/web/WEB-INF/lib/xmpbox-2.0.9.jar
Binary file not shown.
62 changes: 62 additions & 0 deletions build/web/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<servlet>
<servlet-name>login</servlet-name>
<servlet-class>auth.login</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>login</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>register</servlet-name>
<servlet-class>auth.register</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>register</servlet-name>
<url-pattern>/register</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>forgot</servlet-name>
<servlet-class>auth.forgot</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>forgot</servlet-name>
<url-pattern>/forgot</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>forgot2</servlet-name>
<servlet-class>auth.forgot2</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>forgot2</servlet-name>
<url-pattern>/forgot2</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>upload</servlet-name>
<servlet-class>files.upload</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>upload</servlet-name>
<url-pattern>/upload</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>form</servlet-name>
<servlet-class>forms.form</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>form</servlet-name>
<url-pattern>/form</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>finish</servlet-name>
<servlet-class>forms.finish</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>finish</servlet-name>
<url-pattern>/finish</url-pattern>
</servlet-mapping>
</web-app>
27 changes: 27 additions & 0 deletions build/web/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>Home</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet">
</head>
<body>
<div class="separator"></div>
<div class="container">
<h1>Home</h1>
<ul class="list">
<li><a href="templates.html">Templates</a></li>
<li><a href="myfiles.html">Mis Archivos</a></li>
<li><a href="readfiles.html">Leer Archivos</a></li>
<li><a href="index.html">Log Out</a></li>
</ul>
</div>
</body>
</html>
37 changes: 37 additions & 0 deletions build/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>Login</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet">
</head>
<body>
<div class="separator"></div>
<div class="container">
<h1>File Reader</h1>
<form action="login" method="POST">
<input class="input" type="text" placeholder="Username" name="username"><br>
<input class="input" type="text" placeholder="Password" name="password"><br>
<input class="submit" type="submit" value="LogIn">
</form>
<a class="link" href="register.html">Register</a></br>
<div class="link" id="forgot">¿Olvidaste tu contraseña?</div>
<form id="forgot-form" action="forgot" method="POST">
<input type="text" placeholder="Email" name="email">
<input type="submit" value="Enviar">
</form>
</div>
</body>
<script>
document.getElementById("forgot").addEventListener("click",function(){
document.getElementById("forgot-form").style.visibility = "visible";
});
</script>
</html>
99 changes: 99 additions & 0 deletions build/web/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : 3/04/2018, 07:56:28 PM
Author : AlejandroIvan
*/

body{
margin:0px !important;
font-family: Roboto, sans-serif;
font-weight: lighter;
color: black;
}
.container{
text-align: center;
}
.separator{
width: 100%;
height: 135px;
}
h1{
font-size: 36px;
font-weight: lighter;
}
.input{
border-bottom: black 1px solid !important;
border: none;
padding: 10px 10px 10px 0px;
width: 250px;
margin-bottom: 15px;
font-size: 15px;
font-family: Roboto, sans-serif;
}
.input:focus{
outline:none !important;
}
.submit{
width: 260px;
padding: 9px 0px;
border: black 2px solid;
background-color: white;
font-family: Roboto, sans-serif;
margin-top: 15px;
font-size: 14px;
font-weight: bold;
transition: background-color 0.4s, color 0.4s;
cursor:pointer;
margin-bottom: 15px;
}
.submit:hover{
color:white;
background-color: black;
}
.link{
font-size: 16px;
font-weight: lighter;
margin: 0px;
margin-top: 15px;
text-decoration: none;
color: black;
}
#forgot{
cursor:pointer;
}
#forgot:hover{
color:blue;
}
#forgot-form{
visibility: hidden;
}
.list{
list-style: none;
padding: 0px;
}
.list li a{
font-size: 20px;
font-weight: lighter;
margin: 0px;
margin-top: 15px;
text-decoration: none;
color: black;
cursor: pointer;
border-bottom: white 1px solid;
transition: border-bottom 0.4s, font-weight 0.4s;
}
.list li a:hover{
border-bottom: black 1px solid;
font-weight: bold;
}
.list li{
margin-bottom: 10px;
}
#file input{
display:none !important;
}

26 changes: 26 additions & 0 deletions build/web/readfiles.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>Read Files</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet">
</head>
<body>
<div class="separator"></div>
<div class="container">
<h1>Upload Your PDF Files</h1>
<form action="upload" method="POST" enctype="multipart/form-data">
<!--<label for="file" class="custom-file-upload">Custom Upload</label><br>-->
<input id="file" type="file" name="myFile"><br>
<input class="submit" type="submit" value="Submit">
</form>
</div>
</body>
</html>
36 changes: 36 additions & 0 deletions build/web/register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet">
</head>
<body>
<div class="separator"></div>
<div class="container">
<h1>Register</h1>
<form action="register" method="POST">
<input class="input" type="text" placeholder="Email" name="email"/></br>
<input class="input" type="text" placeholder="Username" name="username"/></br>
<input class="input" type="text" placeholder="Password" name="password"/></br>
Pregunta de recuperacion de contraseña</br>
<select class="input" name="pregunta">
<option value="Como se llamaba tu primera mascota">¿Cómo se llamaba tu primera mascota?</option>
<option value="Como te apodaban en la secundaria">¿Cómo te apodaban en la secundaria?</option>
<option value="En que ciudad naciste">¿En qué ciudad naciste?</option>
<option value="Cual es el segundo nombre de tu padre">¿Cuál es el segundo nombre de tu padre?</option>
<option value="Cual es tu comida favorita">¿Cuál es tu comida favorita?</option>
</select></br>
<input class="input" type="text" placeholder="Respuesta" name="respuesta"/></br>
<input class="submit" type="submit" value="Register">
</form>
</div>
</body>
</html>
Loading