pre-release Idea2ant plugin.

Hi,

This weekend I've made a start with a plugin which creates an ant build
script from the project settings available in Idea.

attached a prerelease ... USE WITH CARE :) (especialy the clean target)

it probably only works with #636 (since I access intellij classes
directly, instead of parsing the project file, in some cases).

what is does:
- it generates a simple ant build script next to your project file
(named after the .ipr)
- it handles the different types of output (single, source, multiple)
directories.
- for now the following targets are defined: init, compile, javadoc,
build and clean
- compile and javadoc use your project settings mapped to the ant-tasks
options (note: the optional settings are not activated).
- WARNING: clean removes directory (please check the script before
invoking !!)

installation:
copy the idea2ant.jar to your plugins directory.
to create script: File->Export to Ant.

please let me know what you think of it,



Aiko


known bug:
a null pointer exception is thrown when the .ipr is not yet updated to
new project settings (e.g. changes from single to multiple output
directory).

ps: sources, I do not dare to expose yet (it's just a big mess :))




16 comments
Comment actions Permalink

I have put the jar in the plugin directory.
I launched the IDE.
My project opened.
Then, I clicked on "Export to Ant" and...
Oooppps, I got this error:

2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
Error during dispatching of
java.awt.event.MouseEvent[MOUSE_RELEASED,(127,149),button=1,modifiers=Button
1,clickCount=1] on frame0
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
IntelliJ IDEA (Ariadna) 3.0 Build #636
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
JDK: 1.4.0_01
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
VM: Java HotSpot(TM) Client VM
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
Vendor: Sun Microsystems Inc.
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
OS: Windows 2000
2002-07-22 15:25:33,375 ERROR - com.intellij.ide.q -
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM
attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:517)
at org.jdom.Attribute.(Attribute.java:245) at org.jdom.Attribute.]]>(Attribute.java:265)
at org.jdom.Element.setAttribute(Element.java:1393)
at sh.aiko.intellij.plugin.idea2ant.AntUtils.getProperty(AntUtils.java:44)
at
sh.aiko.intellij.plugin.idea2ant.Idea2antAction.parseProjectTreeVersion2(Ide
a2antAction.java:126)
at
sh.aiko.intellij.plugin.idea2ant.Idea2antAction.actionPerformed(Idea2antActi
on.java:43)
at com.intellij.openapi.actionSystem.a.j.actionPerformed(j.java:1)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at com.intellij.openapi.actionSystem.a.z.fireActionPerformed(z.java:49)
at com.intellij.ui.a.a.n.doClick(n.java:166)
at com.intellij.ui.a.a.n.access$300(n.java:160)
at com.intellij.ui.a.a.o.mouseReleased(o.java:7)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1525)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
at java.awt.Container.dispatchEventImpl(Container.java:1568)
at java.awt.Window.dispatchEventImpl(Window.java:1581)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at com.intellij.ide.q.a(q.java:18)
at com.intellij.ide.q.dispatchEvent(q.java:10)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:191)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)


Maybe there is some problem with certain value missing in project file ?
Something you wre expecting to find ?
Otherwise, this plugin is a good idea :o)

Guillaume


0
Comment actions Permalink

aha...

You don't have your javadoc output path set...

I've put in a check for that and removed the javadoc target :) (attached)

Aiko


Guillaume Laforge wrote:

I have put the jar in the plugin directory.
I launched the IDE.
My project opened.
Then, I clicked on "Export to Ant" and...
Oooppps, I got this error:

2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
Error during dispatching of
java.awt.event.MouseEvent[MOUSE_RELEASED,(127,149),button=1,modifiers=Button
1,clickCount=1] on frame0
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
IntelliJ IDEA (Ariadna) 3.0 Build #636
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
JDK: 1.4.0_01
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
VM: Java HotSpot(TM) Client VM
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
Vendor: Sun Microsystems Inc.
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
OS: Windows 2000
2002-07-22 15:25:33,375 ERROR - com.intellij.ide.q -
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM
attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:517)
at org.jdom.Attribute.<init>(Attribute.java:245)
at org.jdom.Attribute.<init>(Attribute.java:265)
at org.jdom.Element.setAttribute(Element.java:1393)
at sh.aiko.intellij.plugin.idea2ant.AntUtils.getProperty(AntUtils.java:44)
at
sh.aiko.intellij.plugin.idea2ant.Idea2antAction.parseProjectTreeVersion2(Ide
a2antAction.java:126)
at
sh.aiko.intellij.plugin.idea2ant.Idea2antAction.actionPerformed(Idea2antActi
on.java:43)
at com.intellij.openapi.actionSystem.a.j.actionPerformed(j.java:1)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at com.intellij.openapi.actionSystem.a.z.fireActionPerformed(z.java:49)
at com.intellij.ui.a.a.n.doClick(n.java:166)
at com.intellij.ui.a.a.n.access$300(n.java:160)
at com.intellij.ui.a.a.o.mouseReleased(o.java:7)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1525)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
at java.awt.Container.dispatchEventImpl(Container.java:1568)
at java.awt.Window.dispatchEventImpl(Window.java:1581)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at com.intellij.ide.q.a(q.java:18)
at com.intellij.ide.q.dispatchEvent(q.java:10)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:191)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)


Maybe there is some problem with certain value missing in project file ?
Something you wre expecting to find ?
Otherwise, this plugin is a good idea :o)

Guillaume




0
Comment actions Permalink

oops.. a misfix...

another try attached.

with or without javadoc path set.. a script is made

aiko


Guillaume Laforge wrote:

I have put the jar in the plugin directory.
I launched the IDE.
My project opened.
Then, I clicked on "Export to Ant" and...
Oooppps, I got this error:

2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
Error during dispatching of
java.awt.event.MouseEvent[MOUSE_RELEASED,(127,149),button=1,modifiers=Button
1,clickCount=1] on frame0
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
IntelliJ IDEA (Ariadna) 3.0 Build #636
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
JDK: 1.4.0_01
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
VM: Java HotSpot(TM) Client VM
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
Vendor: Sun Microsystems Inc.
2002-07-22 15:25:33,359 ERROR - com.intellij.ide.q -
OS: Windows 2000
2002-07-22 15:25:33,375 ERROR - com.intellij.ide.q -
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM
attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:517)
at org.jdom.Attribute.<init>(Attribute.java:245)
at org.jdom.Attribute.<init>(Attribute.java:265)
at org.jdom.Element.setAttribute(Element.java:1393)
at sh.aiko.intellij.plugin.idea2ant.AntUtils.getProperty(AntUtils.java:44)
at
sh.aiko.intellij.plugin.idea2ant.Idea2antAction.parseProjectTreeVersion2(Ide
a2antAction.java:126)
at
sh.aiko.intellij.plugin.idea2ant.Idea2antAction.actionPerformed(Idea2antActi
on.java:43)
at com.intellij.openapi.actionSystem.a.j.actionPerformed(j.java:1)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at com.intellij.openapi.actionSystem.a.z.fireActionPerformed(z.java:49)
at com.intellij.ui.a.a.n.doClick(n.java:166)
at com.intellij.ui.a.a.n.access$300(n.java:160)
at com.intellij.ui.a.a.o.mouseReleased(o.java:7)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1525)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
at java.awt.Container.dispatchEventImpl(Container.java:1568)
at java.awt.Window.dispatchEventImpl(Window.java:1581)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at com.intellij.ide.q.a(q.java:18)
at com.intellij.ide.q.dispatchEvent(q.java:10)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:191)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)


Maybe there is some problem with certain value missing in project file ?
Something you wre expecting to find ?
Otherwise, this plugin is a good idea :o)

Guillaume




0
Comment actions Permalink


"Aiko Mastboom" <intellij@aiko.sh> a ?crit dans le message news:
3D3C09A1.5020004@aiko.sh...

aha...

>

You don't have your javadoc output path set...

>

I've put in a check for that and removed the javadoc target :) (attached)

>

Aiko


Hehe, great, you're quick!
But I can't find the the xml file :o(
It's not along side my project file.
In the log file, everything looks good, the ant file is written there, it
seems ok.
No error appeared. But it is not written anywhere.


0
Comment actions Permalink

hmmm.. that's wierd :)

it should be next to your project file

project.ipr
project.ipw
project.xml <-----

NOTE: ioexceptions are caught.. so if your directory is Read-Only you
won't see anything going wrong.

Aiko


Guillaume Laforge wrote:

"Aiko Mastboom" <intellij@aiko.sh> a ?crit dans le message news:
3D3C09A1.5020004@aiko.sh...

>>aha...
>>
>>You don't have your javadoc output path set...
>>
>>I've put in a check for that and removed the javadoc target :) (attached)
>>
>>Aiko


Hehe, great, you're quick!
But I can't find the the xml file :o(
It's not along side my project file.
In the log file, everything looks good, the ant file is written there, it
seems ok.
No error appeared. But it is not written anywhere.



0
Comment actions Permalink

a little bit better....

the relative directories are giving me a hard time...

also working on exclusion support.

but... I dare you to try this version (on a very simple project)


Aiko

ps: known bug.. a jar in the classpath which on another drive than where
the project is, is wrongly prefixed with basedir.

Aiko Mastboom wrote:

Hi,

This weekend I've made a start with a plugin which creates an ant build
script from the project settings available in Idea.

attached a prerelease ... USE WITH CARE :) (especialy the clean target)

it probably only works with #636 (since I access intellij classes
directly, instead of parsing the project file, in some cases).

what is does:
- it generates a simple ant build script next to your project file
(named after the .ipr)
- it handles the different types of output (single, source, multiple)
directories.
- for now the following targets are defined: init, compile, javadoc,
build and clean
- compile and javadoc use your project settings mapped to the ant-tasks
options (note: the optional settings are not activated).
- WARNING: clean removes directory (please check the script before
invoking !!)

installation:
copy the idea2ant.jar to your plugins directory.
to create script: File->Export to Ant.

please let me know what you think of it,



Aiko


known bug:
a null pointer exception is thrown when the .ipr is not yet updated to
new project settings (e.g. changes from single to multiple output
directory).

ps: sources, I do not dare to expose yet (it's just a big mess :))





0
Comment actions Permalink

Hello Aiko,

This time, the build file was created in the right place. The build file
seems ok.
But I got an error, see at the end of this message to have a look at the
stacktrace.

Good luck,
Guillaume

2002-07-23 09:23:36,562 INFO - plugin.idea2ant.Idea2antAction -
VirtualFile: D:\projet\OP.ipr
2002-07-23 09:23:36,593 INFO - plugin.idea2ant.Idea2antAction -
project path= D:/projet
2002-07-23 09:23:36,625 INFO -
plugin.idea2ant.Idea2antAction - --project
2002-07-23 09:23:36,625 INFO - plugin.idea2ant.Idea2antAction -
V:/inetpub/sites/WebDesigner
2002-07-23 09:23:36,625 INFO - plugin.idea2ant.Idea2antAction -
V:/OpenProspect
2002-07-23 09:23:36,625 INFO - plugin.idea2ant.Idea2antAction -
V:/inetpub/tomcat/conf
2002-07-23 09:23:36,625 INFO - plugin.idea2ant.Idea2antAction -
I:/JavaWork/src-open
2002-07-23 09:23:36,625 INFO - plugin.idea2ant.Idea2antAction -
V:/mysql/scripts
2002-07-23 09:23:36,625 INFO -
plugin.idea2ant.Idea2antAction - --source
2002-07-23 09:23:36,625 INFO -
plugin.idea2ant.Idea2antAction - --class
2002-07-23 09:23:36,640 ERROR - com.intellij.ide.q -
Error during dispatching of
java.awt.event.MouseEvent[MOUSE_RELEASED,(124,142),button=1,modifiers=Button
1,clickCount=1] on frame0
2002-07-23 09:23:36,640 ERROR - com.intellij.ide.q -
IntelliJ IDEA (Ariadna) 3.0 Build #636
2002-07-23 09:23:36,640 ERROR - com.intellij.ide.q -
JDK: 1.4.0_01
2002-07-23 09:23:36,640 ERROR - com.intellij.ide.q -
VM: Java HotSpot(TM) Client VM
2002-07-23 09:23:36,640 ERROR - com.intellij.ide.q -
Vendor: Sun Microsystems Inc.
2002-07-23 09:23:36,656 ERROR - com.intellij.ide.q -
OS: Windows 2000
2002-07-23 09:23:36,687 ERROR - com.intellij.ide.q -
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM
attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:517)
at org.jdom.Attribute.(Attribute.java:245) at org.jdom.Attribute.]]>(Attribute.java:265)
at org.jdom.Element.setAttribute(Element.java:1393)
at sh.aiko.intellij.plugin.idea2ant.AntUtils.getProperty(AntUtils.java:44)
at
sh.aiko.intellij.plugin.idea2ant.Idea2antAction.parseProjectTreeVersion2(Ide
a2antAction.java:100)
at
sh.aiko.intellij.plugin.idea2ant.Idea2antAction.actionPerformed(Idea2antActi
on.java:45)
at com.intellij.openapi.actionSystem.a.j.actionPerformed(j.java:1)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at com.intellij.openapi.actionSystem.a.z.fireActionPerformed(z.java:49)
at com.intellij.ui.a.a.n.doClick(n.java:166)
at com.intellij.ui.a.a.n.access$300(n.java:160)
at com.intellij.ui.a.a.o.mouseReleased(o.java:7)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1525)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
at java.awt.Container.dispatchEventImpl(Container.java:1568)
at java.awt.Window.dispatchEventImpl(Window.java:1581)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at com.intellij.ide.q.a(q.java:18)
at com.intellij.ide.q.dispatchEvent(q.java:10)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:191)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)


0
Comment actions Permalink

Hi,

a version which actualy worked without error for my tester :)

Aiko

please comment when it doesn't work for you (it's hard for me to test
all possibilities)





Aiko Mastboom wrote:

Hi,

This weekend I've made a start with a plugin which creates an ant build
script from the project settings available in Idea.

attached a prerelease ... USE WITH CARE :) (especialy the clean target)

it probably only works with #636 (since I access intellij classes
directly, instead of parsing the project file, in some cases).

what is does:
- it generates a simple ant build script next to your project file
(named after the .ipr)
- it handles the different types of output (single, source, multiple)
directories.
- for now the following targets are defined: init, compile, javadoc,
build and clean
- compile and javadoc use your project settings mapped to the ant-tasks
options (note: the optional settings are not activated).
- WARNING: clean removes directory (please check the script before
invoking !!)

installation:
copy the idea2ant.jar to your plugins directory.
to create script: File->Export to Ant.

please let me know what you think of it,



Aiko


known bug:
a null pointer exception is thrown when the .ipr is not yet updated to
new project settings (e.g. changes from single to multiple output
directory).

ps: sources, I do not dare to expose yet (it's just a big mess :))





0
Comment actions Permalink

Aiko, Hi,

Instead of posting each new version to the newsgroup, you can upload the
latest version to the Twiki site, (www.intellij.org), so as not to overload
the newsgroup.

Thanks,
Avi


"Aiko Mastboom" <intellij@aiko.sh> wrote in message
news:3D3D2696.2060009@aiko.sh...

Hi,

>

a version which actualy worked without error for my tester :)

>

Aiko

>

please comment when it doesn't work for you (it's hard for me to test
all possibilities)

>
>
>
>
>

Aiko Mastboom wrote:

Hi,

>

This weekend I've made a start with a plugin which creates an ant build
script from the project settings available in Idea.

>

attached a prerelease ... USE WITH CARE :) (especialy the clean target)

>

it probably only works with #636 (since I access intellij classes
directly, instead of parsing the project file, in some cases).

>

what is does:
- it generates a simple ant build script next to your project file
(named after the .ipr)
- it handles the different types of output (single, source, multiple)
directories.
- for now the following targets are defined: init, compile, javadoc,
build and clean
- compile and javadoc use your project settings mapped to the ant-tasks
options (note: the optional settings are not activated).
- WARNING: clean removes directory (please check the script before
invoking !!)

>

installation:
copy the idea2ant.jar to your plugins directory.
to create script: File->Export to Ant.

>

please let me know what you think of it,

>
>
>

Aiko

>
>

known bug:
a null pointer exception is thrown when the .ipr is not yet updated to
new project settings (e.g. changes from single to multiple output
directory).

>

ps: sources, I do not dare to expose yet (it's just a big mess :))

>
>
>

>
>
>


0
Comment actions Permalink

Hi,

will do.... when I think it's worthy.

did you try the plugin yourself?

Aiko


Avi Rosenschein wrote:

Aiko, Hi,

Instead of posting each new version to the newsgroup, you can upload the
latest version to the Twiki site, (www.intellij.org), so as not to overload
the newsgroup.

Thanks,
Avi


"Aiko Mastboom" <intellij@aiko.sh> wrote in message
news:3D3D2696.2060009@aiko.sh...

>>Hi,
>>
>>a version which actualy worked without error for my tester :)
>>
>>Aiko
>>
>>please comment when it doesn't work for you (it's hard for me to test
>>all possibilities)
>>
>>
>>
>>
>>
>>Aiko Mastboom wrote:
>>
>>>Hi,
>>>
>>>This weekend I've made a start with a plugin which creates an ant build
>>>script from the project settings available in Idea.
>>>
>>>attached a prerelease ... USE WITH CARE :) (especialy the clean target)
>>>
>>>it probably only works with #636 (since I access intellij classes
>>>directly, instead of parsing the project file, in some cases).
>>>
>>>what is does:
>>>- it generates a simple ant build script next to your project file
>>>(named after the .ipr)
>>>- it handles the different types of output (single, source, multiple)
>>>directories.
>>>- for now the following targets are defined: init, compile, javadoc,
>>>build and clean
>>>- compile and javadoc use your project settings mapped to the ant-tasks
>>>options (note: the optional settings are not activated).
>>>- WARNING: clean removes directory (please check the script before
>>>invoking !!)
>>>
>>>installation:
>>>copy the idea2ant.jar to your plugins directory.
>>>to create script: File->Export to Ant.
>>>
>>>please let me know what you think of it,
>>>
>>>
>>>
>>>Aiko
>>>
>>>
>>>known bug:
>>>a null pointer exception is thrown when the .ipr is not yet updated to
>>>new project settings (e.g. changes from single to multiple output
>>>directory).
>>>
>>>ps: sources, I do not dare to expose yet (it's just a big mess :))
>>>
>>>
>>>
>>
>>
>>




0
Comment actions Permalink

Sorry, I haven't been using Ant.

Avi

"Aiko Mastboom" <intellij@aiko.sh> wrote in message
news:3D3E4474.8070900@aiko.sh...

Hi,

>

will do.... when I think it's worthy.

>

did you try the plugin yourself?

>

Aiko

>
>

Avi Rosenschein wrote:

Aiko, Hi,

>

Instead of posting each new version to the newsgroup, you can upload the
latest version to the Twiki site, (www.intellij.org), so as not to

overload

the newsgroup.

>

Thanks,
Avi

>
>

"Aiko Mastboom" <intellij@aiko.sh> wrote in message
news:3D3D2696.2060009@aiko.sh...

>
>>Hi,
>>
>>a version which actualy worked without error for my tester :)
>>
>>Aiko
>>
>>please comment when it doesn't work for you (it's hard for me to test
>>all possibilities)
>>
>>
>>
>>
>>
>>Aiko Mastboom wrote:
>>
>>>Hi,
>>>
>>>This weekend I've made a start with a plugin which creates an ant build
>>>script from the project settings available in Idea.
>>>
>>>attached a prerelease ... USE WITH CARE :) (especialy the clean target)
>>>
>>>it probably only works with #636 (since I access intellij classes
>>>directly, instead of parsing the project file, in some cases).
>>>
>>>what is does:
>>>- it generates a simple ant build script next to your project file
>>>(named after the .ipr)
>>>- it handles the different types of output (single, source, multiple)
>>>directories.
>>>- for now the following targets are defined: init, compile, javadoc,
>>>build and clean
>>>- compile and javadoc use your project settings mapped to the ant-tasks
>>>options (note: the optional settings are not activated).
>>>- WARNING: clean removes directory (please check the script before
>>>invoking !!)
>>>
>>>installation:
>>>copy the idea2ant.jar to your plugins directory.
>>>to create script: File->Export to Ant.
>>>
>>>please let me know what you think of it,
>>>
>>>
>>>
>>>Aiko
>>>
>>>
>>>known bug:
>>>a null pointer exception is thrown when the .ipr is not yet updated to
>>>new project settings (e.g. changes from single to multiple output
>>>directory).
>>>
>>>ps: sources, I do not dare to expose yet (it's just a big mess :))
>>>
>>>
>>>
>>
>>
>>
>
>

>
>


0
Comment actions Permalink

Here you go :)

http://www.intellij.org/twiki/bin/view/Main/IdeaToAntPlugin

Aiko

Avi Rosenschein wrote:

Aiko, Hi,

Instead of posting each new version to the newsgroup, you can upload the
latest version to the Twiki site, (www.intellij.org), so as not to overload
the newsgroup.

Thanks,
Avi


0
Comment actions Permalink

Hi Aiko,

I have a small problem using the plugin. You include the sources of the
libraries in the sourcepath the tha javac task. This generates error during
compile. (eg src.zip is not a directory)


Greetings
ralf

"Aiko Mastboom" <intellij@aiko.sh> schrieb im Newsbeitrag
news:ahonbi$kop$1@is.intellij.net...

Here you go :)

>

http://www.intellij.org/twiki/bin/view/Main/IdeaToAntPlugin

>

Aiko

>

Avi Rosenschein wrote:

Aiko, Hi,

>

Instead of posting each new version to the newsgroup, you can upload the
latest version to the Twiki site, (www.intellij.org), so as not to

overload

the newsgroup.

>

Thanks,
Avi

>
>

>


0
Comment actions Permalink

Hi,

Please try the new version at:
http://www.intellij.org/twiki/bin/view/Main/IdeaToAntPlugin

any comments/suggestions/bugs are welcome,

Aiko

ps: thanks for all the previous feedback.
ps: Ralph: the library exclusion is still an open issue :( see the twiki
page for details

Aiko Mastboom wrote:

Hi,

This weekend I've made a start with a plugin which creates an ant build
script from the project settings available in Idea.

attached a prerelease ... USE WITH CARE :) (especialy the clean target)

it probably only works with #636 (since I access intellij classes
directly, instead of parsing the project file, in some cases).

what is does:
- it generates a simple ant build script next to your project file
(named after the .ipr)
- it handles the different types of output (single, source, multiple)
directories.
- for now the following targets are defined: init, compile, javadoc,
build and clean
- compile and javadoc use your project settings mapped to the ant-tasks
options (note: the optional settings are not activated).
- WARNING: clean removes directory (please check the script before
invoking !!)

installation:
copy the idea2ant.jar to your plugins directory.
to create script: File->Export to Ant.

please let me know what you think of it,



Aiko


known bug:
a null pointer exception is thrown when the .ipr is not yet updated to
new project settings (e.g. changes from single to multiple output
directory).

ps: sources, I do not dare to expose yet (it's just a big mess :))



0
Comment actions Permalink

Hi,

Please try the new version at:
http://www.intellij.org/twiki/bin/view/Main/IdeaToAntPlugin

changes: added exclusion of "library" paths from compilation (thanks to
Valentin)

any comments/suggestions/bugs are welcome,

Aiko


Aiko Mastboom wrote:

Hi,

This weekend I've made a start with a plugin which creates an ant build
script from the project settings available in Idea.

attached a prerelease ... USE WITH CARE :) (especialy the clean target)

it probably only works with #636 (since I access intellij classes
directly, instead of parsing the project file, in some cases).

what is does:
- it generates a simple ant build script next to your project file
(named after the .ipr)
- it handles the different types of output (single, source, multiple)
directories.
- for now the following targets are defined: init, compile, javadoc,
build and clean
- compile and javadoc use your project settings mapped to the ant-tasks
options (note: the optional settings are not activated).
- WARNING: clean removes directory (please check the script before
invoking !!)

installation:
copy the idea2ant.jar to your plugins directory.
to create script: File->Export to Ant.

please let me know what you think of it,



Aiko


known bug:
a null pointer exception is thrown when the .ipr is not yet updated to
new project settings (e.g. changes from single to multiple output
directory).

ps: sources, I do not dare to expose yet (it's just a big mess :))



0
Comment actions Permalink

This does not work with build > 642
An exception is being thrown and IDEA opens with 'Internal error' dialog box

-Anil


"Aiko Mastboom" <intellij@aiko.sh> wrote in message
news:3D4AE4E2.4030308@aiko.sh...

Hi,

>

Please try the new version at:
http://www.intellij.org/twiki/bin/view/Main/IdeaToAntPlugin

>

changes: added exclusion of "library" paths from compilation (thanks to
Valentin)

>

any comments/suggestions/bugs are welcome,

>

Aiko

>
>

Aiko Mastboom wrote:

Hi,

>

This weekend I've made a start with a plugin which creates an ant build
script from the project settings available in Idea.

>

attached a prerelease ... USE WITH CARE :) (especialy the clean target)

>

it probably only works with #636 (since I access intellij classes
directly, instead of parsing the project file, in some cases).

>

what is does:
- it generates a simple ant build script next to your project file
(named after the .ipr)
- it handles the different types of output (single, source, multiple)
directories.
- for now the following targets are defined: init, compile, javadoc,
build and clean
- compile and javadoc use your project settings mapped to the ant-tasks
options (note: the optional settings are not activated).
- WARNING: clean removes directory (please check the script before
invoking !!)

>

installation:
copy the idea2ant.jar to your plugins directory.
to create script: File->Export to Ant.

>

please let me know what you think of it,

>
>
>

Aiko

>
>

known bug:
a null pointer exception is thrown when the .ipr is not yet updated to
new project settings (e.g. changes from single to multiple output
directory).

>

ps: sources, I do not dare to expose yet (it's just a big mess :))

>
>
>

>


0

Please sign in to leave a comment.