Skip to content

Commit

Permalink
Removed old and incorrect information from README
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Suderman committed Mar 12, 2019
1 parent 2d266ea commit 2661d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# LAPPS Vocabulary DSL

**Build status**:
**Build status**

[![master status](http://grid.anc.org:9080/travis/svg/lappsgrid-incubator/vocabulary-dsl?branch=master)](https://travis-ci.org/lappsgrid-incubator/vocabulary-dsl)
[![develop status](http://grid.anc.org:9080/travis/svg/lappsgrid-incubator/vocabulary-dsl?branch=develop)](https://travis-ci.org/lappsgrid-incubator/vocabulary-dsl)

Expand Down Expand Up @@ -68,7 +69,3 @@ Creates two zip files with the main jar file and a startup script. The two zips
Copies the versioned jar and startup script to `$HOME/bin` as well as to a machine specific directory if it exists.
* **upload**<br/>
Uploads the zip file to the downloads area on the ANC web server. This goal will need to be modified before it can be used by other users and also assumes the user has a valid SSH key installed on the ANC server.

## Discriminators

Currently the vocabulary files and the discriminator files are genereated by two separate DSL processors. Currently the output from the vocabulary DSL must be copied and pasted into the discriminator.config file before the disciminator web pages can be generated.
26 changes: 1 addition & 25 deletions src/main/groovy/org/anc/lapps/vocab/dsl/VocabDsl.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class VocabDsl {

void makeDiscriminators(File script, File destination) {
List<String> order = ['annotation',
'chunk',
// 'chunk',
'paragraph',
'sentence',
'token',
Expand Down Expand Up @@ -547,18 +547,6 @@ public class Metadata {
}

static void main(args) {
// if (args.size() == 0) {
// println """
//USAGE
//
//java -jar vocab-${Version.version}.jar [-groovy] /path/to/script"
//
//Specifying the -groovy flag will cause the GroovyTemplateEngine to be
//used. Otherwise the MarkupBuilderTemplateEngine will be used.
//
//"""
// return
// }
CliBuilder cli = new CliBuilder()
cli.usage = "vocab [-?|-v] -d <dsl> -i <template> -h <template> -o <directory>"
cli.header = "Generates LAPPS Vocabulary web site a LAPPS Vocab DSL file."
Expand All @@ -570,7 +558,6 @@ public class Metadata {
cli.d(longOpt: 'discriminators', 'generated Discriminator DSL fragment.')
cli.f(longOpt:'features', 'generates the Features.java with element property names.')
cli.p(longOpt:'package', args:1, 'package name for the Java class.')
// cli.d(longOpt:'dsl', args:1, 'the input DSL specification.')
cli.o(longOpt:'output', args:1, 'output directory.')
cli.x(longOpt:'debug', 'prints a data dump rather than generating anything.')
cli.'?'(longOpt:'help', 'displays this usage messages.')
Expand Down Expand Up @@ -607,17 +594,6 @@ public class Metadata {
}
}

// else {
// File scriptFile = new File(args[0])
// File destination
// if (args.size() == 2) {
// destination = new File(args[1])
// }
// else {
// destination = new File(".")
// }
// new VocabDsl().run(scriptFile, destination)
// }
List<String> files = params.arguments()
if (files.size() == 0) {
println "No vocabulary specified."
Expand Down

0 comments on commit 2661d51

Please sign in to comment.