Is it possible to save a new project outside the workspace?

Asked by Andrew McClain on 2008-02-07

The default new project wizard only creates projects in the default workspace... Is it possible to specify a different path?

And a total shot-in-the-dark: is there any way to run a post-new-project script? A hook of some sort?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Plugin for Eclipse Edit question
Assignee:
No assignee Edit question
Solved by:
Guillermo Gonzalez
Solved:
2008-02-23
Last query:
2008-02-23
Last reply:
2008-02-13
Andrew McClain (awmcclain) said : #1

(I'm trying to set up pydev project and I don't want my developers to have to do an extra step)

Best Guillermo Gonzalez (verterok) said : #2

Hi, (Sorry for the delay)
    There is no way to create a project in other location in the current version, but I'm currently working in the "New Project wizard" and this is one of the features I'm working on.
    For the moment you can workaround this limitation creating a new Project and after that share the project with: Team --> Share Project. The plugin should find the branch root and use that, if it can't find it it will allow to specify the root of a pre-existing branch or a location to create a newone.

Regards.

Guillermo Gonzalez (verterok) said : #3

I missed the post-new-project script part.
It sounds like a great idea. This can be done with a bazaar plugin (don't know if the is a hook for the init command).
But I'l like to hear in which way do you think bzr-eclipse should approach this
 * what kind of script? (bash, python, etc)
If you want to hook into bzr-eclipse and not bazaar itself, I think that adding a extension point to bzr-eclipse is a possible solution.

Regards.

Andrew McClain (awmcclain) said : #4

Actually, an even easier solution would be to allow the user to launch
another wizard after the new branch wizard is completed... (which is what
subversion does, i believe).

Either that or just a simple configuration param in bzr-eclipse, pointing to
a script that receives the directory the new branch is at -- running a
simple python script would be great (though I know this use-case is fairly
limited).

The bazaar plugin is great idea! I'll look into that.

On Feb 12, 2008 7:47 PM, Guillermo Gonzalez <
<email address hidden>> wrote:

> Your question #24129 on Bazaar Plugin for Eclipse changed:
> https://answers.launchpad.net/bzr-eclipse/+question/24129
>
> Guillermo Gonzalez proposed the following answer:
> I missed the post-new-project script part.
> It sounds like a great idea. This can be done with a bazaar plugin (don't
> know if the is a hook for the init command).
> But I'l like to hear in which way do you think bzr-eclipse should approach
> this
> * what kind of script? (bash, python, etc)
> If you want to hook into bzr-eclipse and not bazaar itself, I think that
> adding a extension point to bzr-eclipse is a possible solution.
>
> Regards.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/bzr-eclipse/+question/24129/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/bzr-eclipse/+question/24129
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
Tap the collective.
http://www.fluther.com

Guillermo Gonzalez (verterok) said : #5

I already implemented (it's in the trunk, not yet released) the launch of a new wizard, but bazaar requires that the DEST_LOCATION don't exist, and this wizard creates the DEST_LOCATION :-(
I'm looking other ways to hook bzr-eclipse into the "new project wizard". Until I can solve this, a two-step configuration is needed.

I really think that a bazaar plugin is the way to go. But if you found a use-case that needs to interact with Eclipse in some way, please fill a bug.

Andrew McClain (awmcclain) said : #6

Thanks Guillermo Gonzalez, that solved my question.