58 words

Enhancement from gradle build file

2017-10-06 23:25

Just wondering if it's possible to add enhancement in the gradle build file after compilation?

an example of this, for an IntelliJ gradle based project would be very helpful.



dmoshal's picture
Joined on 2010-05-22
User Post #121
2017-10-06 23:52

The following seems to work:

task enhance(type: JavaExec) {
  main = 'com.objectdb.Enhancer'
  classpath = sourceSets.main.runtimeClasspath
  args '-cp', 'src/main/groovy', 'app.model.*', 'app.model_dir_two.*'


note, for java, you want compileJava instead of compileGroovy.

dmoshal's picture
Joined on 2010-05-22
User Post #122

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Maximum file size: 32 MB