stanfordnlp / phrasal

A large-scale statistical machine translation system written in Java.
http://nlp.stanford.edu/
GNU General Public License v3.0
208 stars 88 forks source link

[gradle] How to build src-extra ? #32

Open ttpro1995 opened 6 years ago

ttpro1995 commented 6 years ago

I need to run web-service.sh, which need edu.stanford.nlp.mt.service.PhrasalService class. That class is not build into build/libs/phrasal-3.6.0.jar when I run gradle installDist

I see that it is add in build.gradle

// Configure build targets
sourceSets {
  main {
    java.srcDirs = ['src/' ]
    resources.srcDirs = ['resources/']
  }
  test {
    java.srcDirs = ['test/']
    resources.srcDirs = ['test-resources/','src-cc']
  }
  extra {
    java.srcDirs = ['src-extra/']
    resources.srcDirs = ['resources/']
  }
}

However, I am new to gradle. I need to know the command to build include src-extra.

ttpro1995 commented 6 years ago

gradle compileExtraJava would compile src-extra

However, build fail, #33 due to compilation error