syntax is ant run -D.....
--Ari
> --
> You received this message because you are subscribed to the Google Groups
> "chord-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/chord-discuss/-/_NxXx4BQo7sJ.
> To post to this group, send email to chord-...@googlegroups.com.
> To unsubscribe from this group, send email to
> chord-discus...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/chord-discuss?hl=en.
--
Ari Rabkin asra...@gmail.com
UC Berkeley Computer Science Department
> For more options, visit this group at
> http://groups.google.com/group/chord-discuss?hl=en.
I use the following command line:
java -Dchord.main.class=<mainClass> -Dchord.class.path=<path> <other
opts> -Dchord.props.file=chord.properties -jar chord.jar
I like to put a "nice -n 5 " in front of this, so the machine is still
friendly for interactive uses.
In my case, I needed to do this so I could run JChord inside a script
without the extra and confusing ant layer.
--Ari
On Mon, Apr 2, 2012 at 3:06 PM, jbranchaud <jbran...@gmail.com> wrote:
> In my Eclipse project I have the chord.jar referenced, but I don't actually
> have the source checked out, so I am not sure that running ant from the
> chord/main directory would work. Is there a way to do this with just the JAR
> library and not the source?
Hi!
I am completely new to Chord and I have been trying hard to write my own analysis using Eclipse, and I'm facing similar issues. I want to do something very simple: write a Java analysis to print out the methods in a Java program.
I created a Java project and copied the files in chord-src-2.1 to it. Then I created my Java analysis file under chord/project/analyses
My file, testAnalysis.java, extends JavaAnalysis, is annotated with @Chord(name = "testAnalysis") and overrides the run().
Now I did ant compile
Then I ran
java -cp chord.jar -Dchord.work.dir=C:\Workspace\ChordTests -Dchord.run.analyses=testAnalyses chord.project.Boot
However, doing so results in the following error being logged in the working directory:
Chord run initiated at: 3 Oct, 2012 12:10:41 AM
java.lang.Error: ERROR: ClassicProject: Task named 'testAnalyses' not found in project.
at chord.project.Messages.fatal(Messages.java:24)
at chord.project.ClassicProject.getTask(ClassicProject.java:344)
at chord.project.ClassicProject.runTask(ClassicProject.java:413)
at chord.project.ClassicProject.run(ClassicProject.java:107)
at chord.project.Main.run(Main.java:78)
at chord.project.Main.main(Main.java:50)
What's going wrong? I would be really grateful if you could help me out with this.
Regards,
Suvam.
--
You received this message because you are subscribed to the Google Groups "chord-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/chord-discuss/-/CoutMMXXQBoJ.
To post to this group, send email to chord-...@googlegroups.com.
To unsubscribe from this group, send email to chord-discus...@googlegroups.com.