Download: StarUML.io
Source: jorgeancal
After installing StartUML successfully, modify LicenseManagerDomain.js as follow:
/**| buildscript { | |
| repositories { | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2' | |
| classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.6' | |
| classpath 'com.github.jruby-gradle:jruby-gradle-plugin:0.1.11' | |
| classpath 'com.github.ben-manes:gradle-versions-plugin:0.7' |
| @Grapes([ | |
| @Grab('org.eclipse.jetty.aggregate:jetty-all:8.1.10.v20130312'), | |
| @Grab('com.h2database:h2:1.3.171'), | |
| @Grab('javax.servlet:servlet-api:2.5'), | |
| ]) | |
| import org.eclipse.jetty.server.Server | |
| import org.eclipse.jetty.servlet.* | |
| import org.eclipse.jetty.webapp.* | |
| import javax.servlet.* | |
| import javax.servlet.http.* |
| package upload; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import javax.servlet.ServletConfig; | |
| import javax.servlet.ServletException; |
| [ | |
| { | |
| "key": "ctrl+d", | |
| "command": "editor.action.cutLines", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+o", | |
| "command": "workbench.action.gotoSymbol" | |
| }, |
| /** | |
| * Encodes multi-byte Unicode string into utf-8 multiple single-byte characters | |
| * (BMP / basic multilingual plane only). | |
| * | |
| * Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars. | |
| * | |
| * Can be achieved in JavaScript by unescape(encodeURIComponent(str)), | |
| * but this approach may be useful in other languages. | |
| * | |
| * @param {string} unicodeString - Unicode string to be encoded as UTF-8. |
Download: StarUML.io
Source: jorgeancal
After installing StartUML successfully, modify LicenseManagerDomain.js as follow:
/**| import android.content.Intent; | |
| import android.graphics.Bitmap; | |
| import android.os.AsyncTask; | |
| import android.os.Environment; | |
| import android.util.Log; | |
| import android.widget.Toast; | |
| import com.itextpdf.text.BaseColor; | |
| import com.itextpdf.text.Document; | |
| import com.itextpdf.text.DocumentException; |
Ratpack works very smoothly with spring-loaded library. It is defined as dependency in build.gradle file. Spring-loaded enables runtime hot class reloading.
dependencies {
springloaded "org.springframework:springloaded:1.2.0.RELEASE"
}
But default configuration reloads only changes in Ratpack.groovy file.
| // imports a couple of java tasks | |
| apply plugin: "java" | |
| // List available tasks in the shell | |
| > gradle tasks | |
| // A Closure that configures the sourceSets Task | |
| // Sets the main folder as Source folder (where the compiler is looking up the .java files) | |
| sourceSets { | |
| main.java.srcDir "src/main" |