Are there any good ant visualization programs out there? - java

I am looking for a utility that will suck in an ant build file and present a graphical display of the targets and properties available to that target. Please don't respond with 'VisualAnt' I own it and it sucks.

I use yWorks Ant Explorer. It runs as a stand alone app. It's pretty good. Apparently there is an Eclipse plugin as well but I haven't been able to locate that.
It's free. Not sure if yWorks still develops it. You can download the jar here and here. After download, just create a bat file with this command:
java -jar antexplorer.jar

Look at Elements of Ant Style wiki page. They have a link there for a XSLT style sheet that makes a build file browsable. Here is a link for it. The wiki page also shows how to use it.

Linguine Maps is maybe an option.
See Create entity-relation diagram text
Bye.

If you are an Eclipse user, take a look at Ant Visualization Plugin for Eclipse

Related

Eclipse: I'm using ANTLR4 plugin, How do I get Eclipse to build the artifacts created by the ANTLR4 plug in?

I have successfully followed the instructions from amura.cxg's Stackoverflow question/answer on how to setup Eclipse for ANTLR4 (Thanks amura.cxg!).
It works well, my .g4 grammar files are getting run through ANTLR4 fine. One downside is the ANTLR4 plug in has no option for setting the -package argument to the command line, but -listener/-visitor options are present.
My issue is... now I have these cool *.java artifacts as a result of using the plug-in. I want Eclipse to either build them in place, and allow my *.java code at the bottom of the screen to find the *.class files, or have Eclipse auto move/copy them to be sources in the *.java projects below (I don't care as long as it's automated and works).
I'm looking for a way to do this. I would hope I don't have to setup and install MAVEN.
Currently my *.java code which is dependent on the BaseListener.java classes won't build because the classes are not getting built.
Thanks!
I started with Linked resources and had some success, but it still wasn't perfect.
I found this information from
this StackOverFlow Questionwith an answer from srinivasan.
This is the screenshot to create linked resources. This was the method I wanted to understand.
There are two ways to create linked resources. One "add a Folder", this method I tried first, and was not exactly what I wanted, as it created an extra layer and forced the naming of the lcoal folder. By using the Properties tab, I was able to create a local alias for the resource. I think this will ultimately be the solution.
I'm still testing it, but I wanted to post my findings so far in case I get too busy to document my progress in learning later.
:)

Share java files in Eclipse

I am using Eclipse to develop a Java program. If I want to share the code (Java files) with someone else (who is also using Eclipse), what would be the easiest way? We do not have a source repository set up yet.
You can send them the example.java files via email or Skype and they could add them to their project if you wanted to go old school.
I think a repository like Github or Subversion will be your best bet.
I vote for setting up a repository :)
I would strongly suggest to consider setting up a source repository for your usage. Meanwhile, you can try something like this:
Export your project files: (After selecting your project), File > Export > General > Archive File
The import option works almost in the same way.
TortoiseSVN is a free subversion tool you and your friend can download.
http://tortoisesvn.net/
It would be most beneficial if you went ahead and set up your repository now, rather than later, especially since you are both interested in starting development.

Installer generator API or using command line app?

I'm developing java applications for Windows and I want to automate the installer generation.
Is there any cmd line utility or API to do that?
EDIT
The best alternative I've found is http://izpack.org , which builds installers from XML files. It seems that they have enough documentation to understand how to make a "IzPack XML File generator" or even build them by hand (for small projects) and automatize the installer generation. Any new suggestion will be welcomed.
See if this is useful : http://antigen.sourceforge.net/

Tool for creating Dynamically Generated Code in Java (In Eclipse)

In Visual Studio land, I used to be able to define a structure in an XSD file and add a special attribute to it which would cause it to be dynamically compiled and available to use with intellisense in the other C# files in the application. I am not sure exactly what the term for this is, perhaps "dynamic code generation."
I am trying to accomplish the same in Java using Eclipse IDE. Basically what I am looking for is a tool that will allow me to specify some template and generate Java code from it in a "hot folder" that will allow me code complete in the other static Java files.
Does anyone know of a solution for this? I know it is possible in Visual Studio, but I can't seem to find anything for Eclipse.
Ok, here is exactly what I want to do.
Step 1. I create a folder called templates
Step 2. I create a file called HelloWord.ibes
Step 3. Code it automatically generated in my src folder HelloWorld.java
I want to be able to do this in eclipse easily.
You may create an ant build file that does the source generation for you. Then you are free to use any code generator you like. Ant support is part of the eclipse IDE. If you prefer maven, there's a nice eclipse pluging available (that's what I actually use for source code generation based on jaxb, javacc and xdoclet...).
Technically spoken, you just add another eclipse builder which is invoked anytime eclipse detects a change in your code base.
If you already have a code generator in mind, just 'ask' the internet if there's a plugin available.
Edit
On how to install a builder: This is done automatically. For maven, you just install the maven plugin (m2eclipse) and enable maven dependencies for a project. Then if you look at the projects properties pages (Builder section), you find a second entry in the list of builders.
It's similiar with ant, even easier, because ant is already integrated. "enable" ant for a project and the builder is added to the list of builders for the project. You can deselect it at any time if it kills performance or switch of automatic building (I don't know by heart how to enable ant builds for a project, but I remember that the eclipse help had sufficiant informations).
All about ant can be found here: Apache Ant
Creating a new builder is difficult, as it has to be coded in java and added to eclipse as a plugin. I bet you don't want to follow that track ;)
I'm not sure whether you have seen the code template option?
Preferences.Java, Code Style then Code Templates
How
to add code templates
Useful
code templates

GhostDoc for NetBeans

Anyone know of a product similar to GhostDoc for the NetBeans IDE?
The Netbeans built in Javadoc functions do some of this. Right click on a java file and select tools then analyze javadoc. This will check, fix, and add Javadoc comments with tags.
Did the Netbeans plugin portal turn up anything ?
Triemax Jalopy can do some of that, along with wicked cool code formatting.

Categories

Resources