Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
StockQuotesAPI
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mukesh060220
StockQuotesAPI
Commits
c6cf140d
Commit
c6cf140d
authored
Oct 09, 2020
by
Siva Rama Krishna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parents
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
103 additions
and
0 deletions
+103
-0
.gitignore
.gitignore
+2
-0
README.md
README.md
+13
-0
pom.xml
pom.xml
+61
-0
HelloWorld.java
src/main/java/com/example/demo/HelloWorld.java
+8
-0
AppTest.java
src/test/java/com/codenvy/example/java/AppTest.java
+19
-0
No files found.
.gitignore
0 → 100644
View file @
c6cf140d
target/*
\ No newline at end of file
README.md
0 → 100644
View file @
c6cf140d
# desktop-java-simple
Core Java Template
# Commands
| # | Command |
| :------------- |:------------- |
| 1 |
`mvn -f ${current.project.path} clean install && java -jar ${current.project.path}/target/*.jar`
|
# App output
App output is streamed into a console. Note that if your app expects user input, do not use command but execute jars in the terminal directly.
pom.xml
0 → 100644
View file @
c6cf140d
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.example
</groupId>
<artifactId>
demo
</artifactId>
<packaging>
jar
</packaging>
<version>
1.0-SNAPSHOT
</version>
<name>
demo
</name>
<url>
http://maven.apache.org
</url>
<properties>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<executions>
<execution>
<id>
copy-dependencies
</id>
<phase>
prepare-package
</phase>
<goals>
<goal>
copy-dependencies
</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
<overWriteReleases>
false
</overWriteReleases>
<overWriteSnapshots>
false
</overWriteSnapshots>
<overWriteIfNewer>
true
</overWriteIfNewer>
<includeScope>
compile
</includeScope>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<version>
2.4
</version>
<configuration>
<archive>
<manifest>
<addClasspath>
true
</addClasspath>
<classpathPrefix>
lib/
</classpathPrefix>
<mainClass>
com.example.demo.HelloWorld
</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
src/main/java/com/example/demo/HelloWorld.java
0 → 100644
View file @
c6cf140d
package
com
.
example
.
demo
;
public
class
HelloWorld
{
public
static
void
main
(
String
...
argvs
)
{
String
a
=
"Playground"
;
System
.
out
.
println
(
"Hello World "
+
a
+
"!"
);
}
}
src/test/java/com/codenvy/example/java/AppTest.java
0 → 100644
View file @
c6cf140d
package
com
.
codenvy
.
example
.
java
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.JUnit4
;
/**
* Unit test for simple App.
*/
@RunWith
(
JUnit4
.
class
)
public
class
AppTest
{
@Test
public
void
testApp
()
{
assertTrue
(
true
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment