You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Jesse Glick <je...@sun.com> on 2007/10/05 17:56:31 UTC

Inclusion of NetBeans project metadata in source tree?

I don't recall any previous discussion of whether IDE-specific metadata 
are wanted/permitted in the source tree. I have been privately 
maintaining a NetBeans "freeform" project setup for Ant which ties into 
the build script in various ways and offers easier and more precise 
development of Ant from the IDE. For example, you can ask to debug a 
single test case and it will run the right target (with the right 
parameter) from build.xml and connect it to the IDE's debugger. Since 
Ant's own build.xml is not in general runnable by the last official 
release, it uses a wrapper script to do some bootstrapping and other 
preparation.

Currently I just keep this in a separate directory structure so as to 
keep my svn checkout clean, and refer to the checkout via an external 
path. But if there are others who might want to use the same IDE on Ant 
it seems a waste for them to not get the same project setup. 
Distributing the metadata separately is awkward (especially if targets 
in build.xml change) and few people would find it.

Could/should this metadata be put in the Ant source tree somewhere? It 
is a directory "nbproject" with a few files (no changes to other files 
are needed). If at top level, you would be able to open the top source 
dir as a NB project; if under e.g. src/etc/ you would need to know to 
open that parent dir instead. I would need to do some cleanup to test 
that all pieces still work (some I wrote months or even years ago) and 
to ensure that all absolute paths or other per-user configuration could 
be loaded from an svn-ignorable user.properties file.

-J.

-- 
jesse.glick@sun.com  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Inclusion of NetBeans project metadata in source tree?

Posted by Peter Reilly <pe...@gmail.com>.
On 10/5/07, Jesse Glick <je...@sun.com> wrote:
> I don't recall any previous discussion of whether IDE-specific metadata
> are wanted/permitted in the source tree. I have been privately
> maintaining a NetBeans "freeform" project setup for Ant which ties into
> the build script in various ways and offers easier and more precise
> development of Ant from the IDE. For example, you can ask to debug a
> single test case and it will run the right target (with the right
> parameter) from build.xml and connect it to the IDE's debugger. Since
> Ant's own build.xml is not in general runnable by the last official
> release, it uses a wrapper script to do some bootstrapping and other
> preparation.

This sounds like a great idea.

>
> Currently I just keep this in a separate directory structure so as to
> keep my svn checkout clean, and refer to the checkout via an external
> path. But if there are others who might want to use the same IDE on Ant
> it seems a waste for them to not get the same project setup.
> Distributing the metadata separately is awkward (especially if targets
> in build.xml change) and few people would find it.
>
> Could/should this metadata be put in the Ant source tree somewhere? It
> is a directory "nbproject" with a few files (no changes to other files
> are needed). If at top level, you would be able to open the top source
> dir as a NB project; if under e.g. src/etc/ you would need to know to
> open that parent dir instead. I would need to do some cleanup to test
> that all pieces still work (some I wrote months or even years ago) and
> to ensure that all absolute paths or other per-user configuration could
> be loaded from an svn-ignorable user.properties file.

We could invite patchs for eclipse and intellij
and others.

Peter


>
> -J.
>
> --
> jesse.glick@sun.com  netbeans.org  ant.apache.org  hudson.dev.java.net
>              http://google.com/search?q=e%5E%28pi*i%29%2B1
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Inclusion of NetBeans project metadata in source tree?

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 05 Oct 2007, Jesse Glick <je...@sun.com> wrote:

> Could/should this metadata be put in the Ant source tree somewhere?

No problem with me.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Inclusion of NetBeans project metadata in source tree?

Posted by Jesse Glick <je...@sun.com>.
Steve Loughran wrote:
> -nbprojects are not hard-coded to individuals or their directory paths 
> are they?

Not if managed properly. In this case I would allow for an optional 
(SVN-ignored) user.properties for any individual overrides, e.g. paths 
to particular JDKs.

BTW what's up with there being both .svnignore and the svn:ignore dir 
prop in Ant sources? Shouldn't the .svnignore files be deleted?

> -how do you manage the dependencies to externals like jsch, junit, etc. 
> Will the project just point to stuff in lib/optional?

TBD but probably yes.

-J.

-- 
jesse.glick@sun.com  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Inclusion of NetBeans project metadata in source tree?

Posted by Steve Loughran <st...@apache.org>.
Jesse Glick wrote:
> I don't recall any previous discussion of whether IDE-specific metadata 
> are wanted/permitted in the source tree. I have been privately 
> maintaining a NetBeans "freeform" project setup for Ant which ties into 
> the build script in various ways and offers easier and more precise 
> development of Ant from the IDE. For example, you can ask to debug a 
> single test case and it will run the right target (with the right 
> parameter) from build.xml and connect it to the IDE's debugger. Since 
> Ant's own build.xml is not in general runnable by the last official 
> release, it uses a wrapper script to do some bootstrapping and other 
> preparation.
> 
> Currently I just keep this in a separate directory structure so as to 
> keep my svn checkout clean, and refer to the checkout via an external 
> path. But if there are others who might want to use the same IDE on Ant 
> it seems a waste for them to not get the same project setup. 
> Distributing the metadata separately is awkward (especially if targets 
> in build.xml change) and few people would find it.
> 
> Could/should this metadata be put in the Ant source tree somewhere? It 
> is a directory "nbproject" with a few files (no changes to other files 
> are needed). If at top level, you would be able to open the top source 
> dir as a NB project; if under e.g. src/etc/ you would need to know to 
> open that parent dir instead. I would need to do some cleanup to test 
> that all pieces still work (some I wrote months or even years ago) and 
> to ensure that all absolute paths or other per-user configuration could 
> be loaded from an svn-ignorable user.properties file.
> 

I'm happy with this.

-nbprojects are not hard-coded to individuals or their directory paths 
are they?
-how do you manage the dependencies to externals like jsch, junit, etc. 
Will the project just point to stuff in lib/optional?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Inclusion of NetBeans project metadata in source tree?

Posted by Jesse Glick <je...@sun.com>.
Dominique Devienne <dd...@gmail.com> wrote:
>> only if it's kept up-to-date

Sure, I can try anyway.

Peter Reilly wrote:
> I think that there is only one directory added.

Correct.

>> But "nbproject" is not explicit enough a name IMHO. Rather use
>> netbeans explicitly.
> 
> nbproject is the name normally used for netbeans.

Yes, this is enforced - the project recognition code checks for the 
existence of a file "nbproject/project.xml". In retrospect "netbeans" 
might have been a better dir name.

-J.

-- 
jesse.glick@sun.com  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Inclusion of NetBeans project metadata in source tree?

Posted by Peter Reilly <pe...@gmail.com>.
On 10/5/07, Dominique Devienne <dd...@gmail.com> wrote:
> On 10/5/07, Jesse Glick <je...@sun.com> wrote:
> > I don't recall any previous discussion of whether IDE-specific metadata
> > are wanted/permitted in the source tree. I have been privately
> > maintaining a NetBeans "freeform" project setup for Ant which ties into
> > the build script in various ways and offers easier and more precise
> > development of Ant from the IDE. For example, you can ask to debug a
> > single test case and it will run the right target (with the right
> > parameter) from build.xml and connect it to the IDE's debugger. Since
> > Ant's own build.xml is not in general runnable by the last official
> > release, it uses a wrapper script to do some bootstrapping and other
> > preparation.
>
> I also think it's a good idea, but only if it's kept up-to-date ;-)
>
> > Currently I just keep this in a separate directory structure so as to
> > keep my svn checkout clean, and refer to the checkout via an external
> > path. But if there are others who might want to use the same IDE on Ant
> > it seems a waste for them to not get the same project setup.
> > Distributing the metadata separately is awkward (especially if targets
> > in build.xml change) and few people would find it.
> >
> > Could/should this metadata be put in the Ant source tree somewhere? It
> > is a directory "nbproject" with a few files (no changes to other files
> > are needed). If at top level, you would be able to open the top source
> > dir as a NB project; if under e.g. src/etc/ you would need to know to
> > open that parent dir instead. I would need to do some cleanup to test
> > that all pieces still work (some I wrote months or even years ago) and
> > to ensure that all absolute paths or other per-user configuration could
> > be loaded from an svn-ignorable user.properties file.
>
> I think the top-level Ant dir is a bit cluttered already, so adding
> too many additional files might not be a good idea, unless you can
> have just one or two files in the top-level dir, and the rest
> somewhere else.
I think that there is only one directory added.
>
> But "nbproject" is not explicit enough a name IMHO. Rather use
> netbeans explicitly. --DD

nbproject is the name normally used for netbeans.

Peter

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Inclusion of NetBeans project metadata in source tree?

Posted by Dominique Devienne <dd...@gmail.com>.
On 10/5/07, Jesse Glick <je...@sun.com> wrote:
> I don't recall any previous discussion of whether IDE-specific metadata
> are wanted/permitted in the source tree. I have been privately
> maintaining a NetBeans "freeform" project setup for Ant which ties into
> the build script in various ways and offers easier and more precise
> development of Ant from the IDE. For example, you can ask to debug a
> single test case and it will run the right target (with the right
> parameter) from build.xml and connect it to the IDE's debugger. Since
> Ant's own build.xml is not in general runnable by the last official
> release, it uses a wrapper script to do some bootstrapping and other
> preparation.

I also think it's a good idea, but only if it's kept up-to-date ;-)

> Currently I just keep this in a separate directory structure so as to
> keep my svn checkout clean, and refer to the checkout via an external
> path. But if there are others who might want to use the same IDE on Ant
> it seems a waste for them to not get the same project setup.
> Distributing the metadata separately is awkward (especially if targets
> in build.xml change) and few people would find it.
>
> Could/should this metadata be put in the Ant source tree somewhere? It
> is a directory "nbproject" with a few files (no changes to other files
> are needed). If at top level, you would be able to open the top source
> dir as a NB project; if under e.g. src/etc/ you would need to know to
> open that parent dir instead. I would need to do some cleanup to test
> that all pieces still work (some I wrote months or even years ago) and
> to ensure that all absolute paths or other per-user configuration could
> be loaded from an svn-ignorable user.properties file.

I think the top-level Ant dir is a bit cluttered already, so adding
too many additional files might not be a good idea, unless you can
have just one or two files in the top-level dir, and the rest
somewhere else.

But "nbproject" is not explicit enough a name IMHO. Rather use
netbeans explicitly. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org