Created
October 26, 2012 06:10
-
-
Save xconnecting/3957190 to your computer and use it in GitHub Desktop.
Use custom Ant task from Gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
apply plugin: 'maven' | |
configurations { taskdef } | |
repositories { mavenCentral() } | |
dependencies { taskdef 'java2html:j2h:1.3.1' } | |
task java2html << { | |
def basedir = '.' | |
ant.taskdef(name:'java2html' | |
,classpath:configurations.taskdef.asPath | |
, classname:"com.java2html.Java2HTMLTask" | |
) | |
ant.java2html{ | |
fileset(dir: 'src/main/java'){ | |
include (name: '*.java') | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment