|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
IntelliJ IDEA and AntI see how to easily have the Groovy All library as pat of the build
dependencies but has anyone managed to get any other library as a dependency. Unlike Eclipse there seems no nifty shortcut to using the Maven repository (even if not using Maven for building). Ant must be in there somewhere but how can I use it as a dependency? Thanks. -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077 |
|
|
Re: IntelliJ IDEA and AntI'd post this to the IntelliJ forum: http://intellij.net/forums/index.jspa
they are pretty good about answering. have you seen the intellij build.xml code completion? it's pretty sweet. On Thu, Jul 3, 2008 at 8:57 AM, Russel Winder <russel.winder@...> wrote: I see how to easily have the Groovy All library as pat of the build |
|
|
Re: IntelliJ IDEA and AntI'm not entirely sure what the question is. Are you wanting to run an ant build before running the current build?
What exactly are you trying to do? I don't use Eclipse so using nifty shortcut and eclipse in the same sentence doesn't help:) timo On Thu, Jul 3, 2008 at 9:57 AM, Russel Winder <russel.winder@...> wrote: I see how to easily have the Groovy All library as pat of the build |
|
|
Re: IntelliJ IDEA and AntOn Thu, 2008-07-03 at 11:24 -0500, Stand Trooper wrote:
> I'm not entirely sure what the question is. Are you wanting to run an > ant build before running the current build? > > What exactly are you trying to do? I don't use Eclipse so using nifty > shortcut and eclipse in the same sentence doesn't help:) Sorry, I was opaque. Compiling Gant requires that the compiler has the Ant jar in the dependencies. Eclipse provides access to the installed Ant jar via a global dependency entry, IntelliJ IDEA appears not to have this. The Groovy jar is there as the GROOVY global dependency that can be selected, but there seems no way of getting to Ant. -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077 |
|
|
Re: IntelliJ IDEA and AntNo problem Russel
settings global libraries create one for ant and add the jar dependencies then go to modules and your project and dependencies tab and the add button then select the global library for ant you created I think this is what you're wanting... If I missed the mark of what you're looking for, let me know. You don't have to create a global library, simply go to the module -> project name -> dependencies tab and add your jars for project specific stuff. timo On Thu, Jul 3, 2008 at 11:39 AM, Russel Winder <russel.winder@...> wrote:
|
|
|
Re: IntelliJ IDEA and AntTimo,
On Thu, 2008-07-03 at 11:48 -0500, Stand Trooper wrote: > No problem Russel > settings global libraries create one for ant and add the jar > dependencies then go to modules and your project and dependencies tab > and the add button then select the global library for ant you created > > I think this is what you're wanting... If I missed the mark of what > you're looking for, let me know. You don't have to create a global > library, simply go to the module -> project name -> dependencies tab > and add your jars for project specific stuff. I think is getting to the real problem. I have the setting dialog up and the dependencies tab showing. I have three dependencies at the moment 1.6 <Module source> GROOVY The last came from the global dependencies as I have the Groovy plugin installed and that gives access to this jar. If I add then I get the drop-down menu but no where does that give me access to the Eclipse equivalent of M2_REPO/org/apache/ant/ant/1.7.0/ant-1.7.0.jar, it seems I have to naviate to it manually. What is actually worse is that I have to provide JUnit manually as well, Eclipse has that as a global dependency entry you can select. Nothin I am doing though is getting the compiler to see these jars, I just continually get errors about not being able to resolve groovy.util.Groovy, clases out of the Ant jar and classes out of the JUnit jar :-( -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077 |
|
|
Re: IntelliJ IDEA and AntOn Thu, Jul 3, 2008 at 12:14 PM, Russel Winder <russel.winder@...> wrote: Timo, I see... You will have to navigate to a directory manually... but since I've never used Eclipse I have no idea. What I do is setup a global library called 'ant' then go to my ant directory and add the ant libs to it. If I'm working a project and I just want to add all libs for that project I go to the dependencies tab of the module -> project and add them there by directory or select them by ctrl+shift click etc Intellij 7 imports eclipse projects if that helps... might be easier for you to create an eclipse project that does what you want save the project then import the eclipse project into intellij and see how that works for you.
by compiler do you mean running ant via command line or running ant via the ant commander in intellij or running Gant via commandline or running Gant via inside intellij? timo
|
|
|
Re: IntelliJ IDEA and AntOn Thu, 2008-07-03 at 12:24 -0500, Stand Trooper wrote:
> I see... You will have to navigate to a directory manually... but > since I've never used Eclipse I have no idea. What I do is setup a > global library called 'ant' then go to my ant directory and add the > ant libs to it. If I'm working a project and I just want to add all > libs for that project I go to the dependencies tab of the module -> > project and add them there by directory or select them by ctrl+shift > click etc Following the direction you indicated I have tried adding individual jars manually -- I like minimalism, only include the actual jars the compilation needs. > Intellij 7 imports eclipse projects if that helps... might be easier > for you to create an eclipse project that does what you want save the > project then import the eclipse project into intellij and see how that > works for you. I might try that. This was an import of a Maven project but it doesn't appear to have done all that is needed to actually compile anything. > Nothin I am doing though is getting the compiler to see these > jars, I > just continually get errors about not being able to resolve > groovy.util.Groovy, clases out of the Ant jar and classes out > of the > JUnit jar :-( > > by compiler do you mean running ant via command line or running ant > via the ant commander in intellij or running Gant via commandline or > running Gant via inside intellij? that works fine, I can click on any of the targets and it all just works. However resorting to Ant seems inappropriate especially for building Gant :-) <advert> If anyone creates an IntelliJ IDEA plugin for Gant as good as the Ant plugin then official hero status is awaiting them. </advert> What I am doing is clicking the "build project" and I am getting lots of activity and then lots of error messages about unresolved names. I shall persevere -- having made it obvious I am a complete beginner at using IntelliJ IDEA, I am determined to make the damn thing work at compiling and running the tests for Gant. I have yet to make Eclipse actually run all the test (without resorting to Ant) so the prognosis is not actually that good. I guess I really am just a command line sort of guy :-) -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077 |
|
|
Re: IntelliJ IDEA and AntOn Thu, Jul 3, 2008 at 12:39 PM, Russel Winder <russel.winder@...> wrote:
I agree:)
Are you running build project from the ant commander or the project view on the left? While I know not of Eclipse and have been spoiled by years of transition from Dos to Windows and Linux distros... I use IntelliJ all the time as well as Gant with Intellij and the Ant build commander. Give me a couple of hours I have a meeting, but I'll put together a small project (ipr, iml and iws) for you with a Gant script and small files with dependencies so you can see how I did it. Obviously the depencies on my machine will be a little different, but you'll get the idea. Is that ok with you? thx timo |
|
|
Re: IntelliJ IDEA and AntTimo,
Exciting news, I got it to say the build was successful. Yay... :-) It seems you have to manually add all the same jars for the test module as for the main module and then add the main module as well. Basically the classpath is defined completely manually -- once I had twigged that, compilation came easily. Now all I have to do is to find out where I manually add all the jars again for the running of the unit tests -- currently it cannot find the Callsites class from the Groovy jar :-( On Thu, 2008-07-03 at 12:59 -0500, Stand Trooper wrote: > I had found the "Treat this XML file as the Ant build > controller" and > that works fine, I can click on any of the targets and it all > just > works. However resorting to Ant seems inappropriate > especially for > building Gant :-) > > I agree:) Excellent. Perhaps we can build up a head of steam towards creating a Gant plugin? > Are you running build project from the ant commander or the project > view on the left? Actually I am pressing the make button on the button bar along the top. Either than or the rebuild project menu item from the menu bar. > While I know not of Eclipse and have been spoiled by years of > transition from Dos to Windows and Linux distros... I use IntelliJ all > the time as well as Gant with Intellij and the Ant build commander. > Give me a couple of hours I have a meeting, but I'll put together a > small project (ipr, iml and iws) for you with a Gant script and small > files with dependencies so you can see how I did it. Obviously the > depencies on my machine will be a little different, but you'll get the > idea. That would be most splendid if you can. > Is that ok with you? Definitely. Are these things I can commit to the repository as the Eclipse files are? -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077 |
|
|
Re: IntelliJ IDEA and AntOn Thu, Jul 3, 2008 at 1:11 PM, Russel Winder <russel.winder@...> wrote: Timo, hmmm, dunno about that, but if I think of something or look further I'll let you know what I find.
I have found one thing about IntelliJ plugins... I suck at writing them, apparently my brain can only handle so much in the intellij psi world. But I'll help however I can.
ok, that gives me something more to work with.
sure... makes no difference to me... what's mine is yours timo
|
|
|
Re: IntelliJ IDEA and AntRussel Winder wrote:
>> [...] Intellij imports eclipse projects if that helps... might be easier >> for you to create an eclipse project that does what you want save the >> project then import the eclipse project into intellij and see how that >> works for you. > > I might try that. This was an import of a Maven project but it doesn't > appear to have done all that is needed to actually compile anything. If you have a pom file but don't use Maven, I would recommend the Maven Dependency Sync plugin. After installing it, just point it to your pom file (under Project Settings -> Modules -> Pom File tab) then under Tools select Fetch Dependencies or Fetch Module Dependencies. There are settings to point the plugin to custom repos if you want too. Paul. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free Forum Powered by Nabble | Forum Help |