Running ant in eclipse (sql2java) - no console output

I configure sql2java for the first time myself. I extracted the zip archive and imported all the files into an eclipse java project. I do not know if this is correct, because when I run the ant build file through the eclipse ant function ("Run as ant build ..."), there is no output on the console.

I do not know where the problem is located, sql2java, ant, eclipse? Its a fresh and clean installation of eclipse galileo.

How can I get sql2java / ant to work? How do I get information to help me find a problem? Is there a way to use the eclipse ant installation to run the build file from the console?

Any help would be greatly appreciated. Thanks in advance.

+3
source share
5 answers

The problem may be related to anthome definitions, usually it should be the same with your eclipse plugin directory.

  • goo windows / preferences menu
  • in the tree on the left, select ant / runtime
  • on the right screen, edit the anthome variable, install the plugin in your eclipse installition ant directory For example: .. \ eclipse-jee-galileo win32 \ eclipse \ plugins \ org.apache.ant_1.7.1.v20090120-1145

hope it works

+5
source

to get the output in the console. you must change the JRE parameter in the "Edit" setting and run for Ant run to run in the same JRE as in the workspace.

console.it , Ant home.it eclipse Ant.

+2

, . .

" " , Ant script. "" , " ( )" !

, , . , Ant script.

+1

Ant , ...

1: - Alt + Shift + Q , Q. Ant " ", .

2: -

Window Eclipse " " .. Ant ,

0

, JDK7 Runtime JRE " ...". JDK6 JDK8 .

eclipse-jee-luna-SR2-win32-x86_64 jdk1.8.0_40 eclipse.ini

" JRE" .

: "anthome", "Allocate console", "Ant" view

0
source

Source: https://habr.com/ru/post/1728205/


All Articles