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

Readme update #20

Open
wants to merge 6 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/nbproject/private/
/build/
/dist/
/dist/
/bin/
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
JStock
=====
JStock is a free stock market software for 26 countries. It provides Stock watchlist, Intraday stock price snapshot, Stock indicator editor, Stock indicator scanner and Portfolio management. Free SMS/email alert supported. It integrates seamless with Android. JStock Android can be downloaded separately from http://goo.gl/t24hN

JStock long term product roadmap can be found from http://goo.gl/55gGQS and http://goo.gl/ClN7zT

[![Gitter chat](https://badges.gitter.im/yccheok/client-app.png)](https://gitter.im/yccheok/jstock)

Development & Building
----
JStock is a Netbeans project.

0. Download or checkout jstock - https://github.com/yccheok/jstock
1. Install Netbans - https://netbeans.org/downloads
2. Open Netbeans and from the File Menu choose 'Open Project' and select the directory you checkedout
3. JStock does not include Junit - this needs to be added.
* Add the JUnit plugin in Netbeans
* Right-click on the project and choose `properties > Libraries` and press `Add Library`. Find `JUnit` in the list and hit `Add Library`.
4. JStock does not include JavaFx this needs to be added manually:
4. JavaFX has been bundled with the JDK since 7u6. Locate the jfxrt.jar under `$JAVA_HOME` and copy it into `jstock/libs`.
3. Right-click on the project and choose `properties > Libraries` and press `Add Jar / Folder`. Find the `jfxrt.jar` that was just added, choose `Reference as relative path` and press `Choose`.
4. Choose `Netbeans > Run > Clean and Build Project` and this will build the file `dist/jstock.jar`. You can run jstock from the command-line independent of Netbeans with:

`# Run from the command-line`

cd jstock
java -jar dist/jstock.jar
blah

5. Alternatively to run jstock directly in Netbeans - `Netbeans > Run > Run`
115 changes: 115 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
// Brooke Smith 13/9/2014 - https://github.com/oehm-smith/jstock
// - Convert jstock to Gradle utilising gradle-javafx plugin to easily create deployments

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
//apply from: 'libs/javafx.plugin'

repositories {
//mavenLocal()
//mavenCentral()
}

repositories {
flatDir {
dirs 'libs'
}
}

dependencies {
compile name: 'blobsallad/blobsallad'
compile name: 'xstream/cglib-nodep-2.2'
compile name: 'commons-codec-1.3'
compile name: 'commons-httpclient-3.1-rc1'
compile name: 'commons-lang-2.4/commons-lang-2.4'
compile name: 'commons-logging-1.1'
compile name: 'commons-net-1.4.1'
compile name: 'commons-validator/commons-validator-1.3.1'
compile name: 'xstream/dom4j-1.6.1'
compile name: 'forms-1.1.0'
compile name: 'drive/libs/google-api-client-1.18.0-rc'
compile name: 'drive/libs/google-api-client-java6-1.18.0-rc'
compile name: 'calendar/google-api-services-calendar-v3-rev82-1.18.0-rc'
compile name: 'drive/google-api-services-drive-v2-rev120-1.18.0-rc'
compile name: 'oauth2/google-api-services-oauth2-v2-rev68-1.18.0-rc'
compile name: 'drive/libs/google-http-client-1.18.0-rc'
compile name: 'drive/libs/google-http-client-gson-1.18.0-rc'
compile name: 'drive/libs/google-oauth-client-1.18.0-rc'
compile name: 'drive/libs/google-oauth-client-java6-1.18.0-rc'
compile name: 'drive/libs/google-oauth-client-jetty-1.18.0-rc'
compile name: 'google-gson-2.2.4/gson-2.2.4'
compile name: 'drive/libs/httpclient-4.0.1'
compile name: 'drive/libs/httpcore-4.0.1'
compile name: 'commons-validator/jakarta-oro-2.0.8'
compile name: 'jasypt-1.5/dist/jasypt-1.5'
compile name: 'jfreechart/jcommon-1.0.16'
compile name: 'xstream/jdom-1.1'
compile name: 'drive/libs/jetty-6.1.26'
compile name: 'drive/libs/jetty-util-6.1.26'
compile name: 'jfreechart/jfreechart-1.0.13'
compile name: 'jh'
compile name: 'jhotdraw7/JHotDraw7'
compile name: 'xstream/joda-time-1.6'
compile name: 'drive/libs/jsr305-1.3.9'
compile name: 'jxlayer/jxlayer'
compile name: 'xstream/kxml2-2.3.0'
compile name: 'l2fprod-common-all'
compile name: 'mail'
compile name: 'nachocalendar-0.23/lib/nachocalendar-0.23'
compile name: 'opencsv/opencsv-2.3'
compile name: 'pinyin4j-2.5.0/lib/pinyin4j-2.5.0'
compile name: 'poi-3.2-FINAL/poi-3.2-FINAL-20081019'
compile name: 'drive/libs/servlet-api-2.5-20081211'
compile name: 'xstream/stax-1.2.0'
compile name: 'xstream/stax-api-1.0.1'
compile name: 'swing-layout-1.0'
compile name: 'swingx/swingx-0.9.6'
compile name: 'TA-Lib/ta-lib-0.4.0'
compile name: 'xstream/xml-writer-0.2'
compile name: 'xstream/xom-1.1'
compile name: 'xstream/xpp3_min-1.1.4c'
compile name: 'xstream/xstream-1.4.2'
}

sourceSets {
main {
java {
srcDir 'src'
}
}
}

// There's actually no functioning JavaFx in jstock that I can see
/* javafx {
mainClass = 'ensemble.Ensemble2'

icons {
shortcut = [
'icon-16.png', '[email protected]',
'icon-32.png', '[email protected]',
'icon-64.png',
'icon-128.png', '[email protected]',
'icon-256.png',
]
volume = shortcut
setup = 'icon-32.png'
}

profiles {
windows {
id = 'b533f663-1efd-489f-b910-4c7ec20c7fd0'
}

macosx {
id = 'net.java.openjdk.openjfx.Ensemble2'
category = 'public.app-category.developer-tools'
}
}
}

cssToBin {
enabled = false //7u21 has some font bugs in the BSS code
}*/


36 changes: 36 additions & 0 deletions libs/javafx.plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Bootstrap script for the Gradle JavaFX Plugin.
* (based on http://plugins.jasoft.fi/vaadin.plugin)
*
* The script will add the latest version of the plugin to the build script
* dependencies and apply the plugin to the project. If you do not want
* this behavior you can copy and paste the below configuration into your
* own build script and define your own repository and version for the plugin.
*/

buildscript {
repositories {
mavenLocal()
maven {
name = 'BinTray'
url = 'http://dl.bintray.com/content/shemnon/javafx-gradle/'
}
maven {
name = 'CloudBees Snapshot'
url = 'http://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot'
}
ivy {
url = 'http://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot'
}
mavenCentral()
}
dependencies {
classpath 'org.bitbucket.shemnon.javafxplugin:gradle-javafx-plugin:0.4.0'
classpath project.files("${System.properties['java.home']}/../lib/ant-javafx.jar")
classpath project.files("${System.properties['java.home']}/lib/jfxrt.jar")
}
}

if (!project.plugins.findPlugin(org.bitbucket.shemnon.javafxplugin.JavaFXPlugin)) {
project.apply(plugin: org.bitbucket.shemnon.javafxplugin.JavaFXPlugin)
}