java - Intellij generated Ant Build File, doesn't build jar -
i trying create jar using intellij generated ant build.
- i using intellij 12.1.4
- i using java 1.6.0_51 (default on mac).
when create ant build using following options:
- generate single-file ant build
- overwrite generated files
- use jdk definitions project files
- inline runtime classpaths
i run following command on command line
ant -f buildfile.xml
it looks works on command line. there few notes, no errors. when finishes says build successful. .jar never created.
i found link: ant build doesn't make jar file seems problem. however, can't seem figure out how create "release" build file intellij. copied current ant build file , renamed "build.xml" , ran command ant release. when ran command got following error:
build failed target "release" not exist in project "myproject"
any further or ideas next steps great.
i able figure out.
i had go open project settings (f4) , went artifacts. allowed me set settings create jar when ran "ant -f buildfile.xml"
Comments
Post a Comment