Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to generate slice of the program in java and need a way to generate program dependence graph of the program in java, please help me to generate program dependence graph. I have tried JFlex I dont know it is right or not,but it did generate DFA and NDFA. but I dont understand how it works, if you ever used it please comment.
If you are using maven try dependency plugin: mvn depedency:tree
I'm using IVY with ANT, you can simply put in the build.xml this line
<ivy:report graph="false">
It will generate an html file with the summary of the dependencies.
If you want remove graph="false" of course ;)
here the documentation
http://ant.apache.org/ivy/history/2.1.0/use/report.html
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Is there a way to add custom rules to languageTool java API just by appending rules to grammar.xml and keeping it external to the java project?
I want to deploy my java project only once, but keep updating the grammar rules whenever required. I would like to keep the xml file (say grammar.xml) separately from the project, and access it through java code.
Thanks !
It should be possible to load XML rules with PatternRuleLoader and then activate them using JLanguageTool.addRule(). I'm not sure what will happen when you insert the same rule (i.e. a rule with the same id) more than once.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have recently join a team in an organization. they have assign me a project. now I have the project source code build in GWT and Java. I have imported the project in my eclipse. Now I can not figure out how to start looking into it as it contains so many packages and java files.
Firstly you should understand what your code does in terms of business cases, and then high-level analyze it, without spending tons of time trying to figure out why each line of code is written, and when you will get it, life will become easier
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to compile and emit .class files at run time? I have some generated servlet code and I want to compile them into classes and package it as a war.
Thanks.
Just export the generated codes into files in a temp directory, invoke javac in there, package them, serve them. Nothing fancy needed.
Yes, it is.
You can take a look at the Java Compiler API doc
Note however, that you will have to provide the corresponding ClassLoader and manage all the resources yourself.
If you want to generate bytecode from non-Java sources, you can also use ASM directly:
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
What I have searched and trying to do is create and add files to a target project automatically from my program, any idea on how to do it? Because so far I can create files and change whatever is necessary but can't see a way to add those to my other project.
You should just be able to write it to the java project directory. If it looks like it didn't work, try pressing Right Click > Refresh on your java project in eclipse.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have created a java based project using Netbeans as an IDE. Now I want to obfuscate my project. How can this be done?
You need to use a source obfuscator.
I have used Zelix Klassmaster in the past and it is pretty good.
I have used RetroGuard and i was really happy with it. The thing I really liked was the ability to use it from my build file, so that I could deploy the project directly obfuscated.
Take a look at proguard - you can integrate it into ANT.