Skip to content

Commit 3e7077c

Browse files
committed
Revert to before Maven
1 parent 660be71 commit 3e7077c

25 files changed

+23
-102
lines changed

ElephantSQL-Uploader.war

1.5 MB
Binary file not shown.

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ Simply upload a line-separated file of text (e.g. tweets), and it will add each
1111
This tutorial is intended to deploy a pre-compiled warfile through the command line. If you would like to
1212
use Eclipse and modify the source code, see [development](#development).
1313

14-
Give it a try! Click the button below to fork into IBM DevOps Services and deploy your own copy of this application on Bluemix.
15-
16-
[![Deploy to Bluemix](images/deploy-button.png)](https://hub.jazz.net/code/cfui/bluemix/deploy.html?Repository=https://github.com/ibmjstart/bluemix-java-postgresql-uploader.git)
17-
18-
Note it will take a minute or so to start up.
19-
2014
## Prerequisites ##
2115

2216
Before we begin, we first need to install the [**cf**](https://github.com/cloudfoundry/cli/releases) command line tool that will be used to upload and manage your application. If you've previously installed an older version of the cf tool, make sure you are now using v6 of cf by passing it the -v flag:

app/.classpath

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">
4-
<attributes>
5-
<attribute name="optional" value="true"/>
6-
<attribute name="maven.pomderived" value="true"/>
7-
</attributes>
8-
</classpathentry>
9-
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
10-
<attributes>
11-
<attribute name="maven.pomderived" value="true"/>
12-
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
13-
</attributes>
14-
</classpathentry>
15-
<classpathentry kind="output" path="target/classes"/>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/json-simple-1.1.jar"/>
6+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-fileupload-1.3.jar"/>
7+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-io-2.4.jar"/>
8+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/postgresql-9.1-901.jdbc4.jar"/>
9+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
10+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
11+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/servlet-api-2.5.jar"/>
12+
<classpathentry kind="output" path="bin"/>
1613
</classpath>

app/.project

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,27 @@
1010
<arguments>
1111
</arguments>
1212
</buildCommand>
13-
<buildCommand>
14-
<name>org.eclipse.jdt.core.javabuilder</name>
15-
<arguments>
16-
</arguments>
17-
</buildCommand>
1813
<buildCommand>
1914
<name>org.eclipse.wst.common.project.facet.core.builder</name>
2015
<arguments>
2116
</arguments>
2217
</buildCommand>
2318
<buildCommand>
24-
<name>org.eclipse.wst.validation.validationbuilder</name>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
2520
<arguments>
2621
</arguments>
2722
</buildCommand>
2823
<buildCommand>
29-
<name>org.eclipse.m2e.core.maven2Builder</name>
24+
<name>org.eclipse.wst.validation.validationbuilder</name>
3025
<arguments>
3126
</arguments>
3227
</buildCommand>
3328
</buildSpec>
3429
<natures>
35-
<nature>org.eclipse.m2e.core.maven2Nature</nature>
3630
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
3731
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
38-
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
3932
<nature>org.eclipse.jdt.core.javanature</nature>
33+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
4034
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
4135
</natures>
4236
</projectDescription>

app/.settings/.jsdtscope

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" path="WebContent"/>
3+
<classpathentry excluding="js/" kind="src" path="WebContent"/>
44
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
55
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
66
<attributes>
+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
eclipse.preferences.version=1
22
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4-
org.eclipse.jdt.core.compiler.compliance=1.7
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
4+
org.eclipse.jdt.core.compiler.compliance=1.5
55
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
66
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7-
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
8-
org.eclipse.jdt.core.compiler.source=1.7
7+
org.eclipse.jdt.core.compiler.source=1.5

app/.settings/org.eclipse.m2e.core.prefs

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
2-
<wb-module deploy-name="PostgreSQLUpload">
3-
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
2+
<wb-module deploy-name="TwitterSearch0">
43
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
54
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
6-
<property name="context-root" value="PostgreSQLUpload"/>
7-
<property name="java-output-path" value="/PostgreSQLUpload/build/classes"/>
5+
<property name="java-output-path" value="/TwitterSearch0/bin"/>
6+
<property name="context-root" value="elephantsql"/>
87
</wb-module>
98
</project-modules>
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<faceted-project>
3-
<runtime name="IBM Bluemix Runtime"/>
43
<fixed facet="wst.jsdt.web"/>
5-
<fixed facet="jst.web"/>
6-
<fixed facet="java"/>
7-
<installed facet="java" version="1.7"/>
4+
<installed facet="java" version="1.5"/>
85
<installed facet="jst.web" version="2.5"/>
96
<installed facet="wst.jsdt.web" version="1.0"/>
107
</faceted-project>

app/.settings/org.eclipse.wst.validation.prefs

-2
This file was deleted.
Binary file not shown.
Binary file not shown.
181 KB
Binary file not shown.
Binary file not shown.
21.3 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
222 KB
Binary file not shown.
25.9 KB
Binary file not shown.
15.7 KB
Binary file not shown.
Binary file not shown.
116 KB
Binary file not shown.

app/pom.xml

-49
This file was deleted.

images/deploy-button.png

-1.76 KB
Binary file not shown.

manifest.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
---
2-
declared-services:
3-
mySQLService:
4-
type: elephantsql
5-
plan: turtle
6-
72
applications:
83
- name: JavaUpload
94
memory: 256M #The maximum memory to allocate to each application instance
105
instances: 1 #The number of instances of the application to start
6+
host: JavaUpload-${random-word} #Hostname for app routing. Unique to domain
117
path: ElephantSQL-Uploader.war
128
services:
13-
- mySQLService #Identifier for ElephantSQL service, must be provisioned before push
9+
- java-pg #Identifier for ElephantSQL service, must be provisioned before push
1410

0 commit comments

Comments
 (0)