Adding files to a component without creating Eclipse project
Is it possible to add files to a component from a local workspace without having to create an Eclipse project in the local workspace? I don't want the overhead of having to manage an Eclipse project and I also don't like having the Eclipse dot-project file in the component. If you load a component without having it create an Eclipse project, the pending changes view does not automatically pick up new files in the component and I don't see any way to add new files from within the pending changes view.
4 answers
First a terminology note ... by "local workspace", I assume you mean
what Jazz SCM calls a "sandbox" (i.e. an area on local disk where your
version-controlled files are loaded).
Jazz SCM doesn't care whether or not your version controlled files are
in Eclipse projects. So you can add, remove, and modify files in a
sandbox, without them being in an Eclipse project.
When you use the Eclipse client, the information in the Pending Changes
view is automatically updated when you modify the content of an Eclipse
project (by using Eclipse editor triggers). But if you modify a file
using a non-Eclipse editor mechanism, then you will have to refresh the
Pending Changes view in order to see those modifications.
And you are correct that there is no way to add a file from within the
Pending Changes view.
Cheers,
Geoff
On 1/27/2012 2:53 PM, molcikas wrote:
what Jazz SCM calls a "sandbox" (i.e. an area on local disk where your
version-controlled files are loaded).
Jazz SCM doesn't care whether or not your version controlled files are
in Eclipse projects. So you can add, remove, and modify files in a
sandbox, without them being in an Eclipse project.
When you use the Eclipse client, the information in the Pending Changes
view is automatically updated when you modify the content of an Eclipse
project (by using Eclipse editor triggers). But if you modify a file
using a non-Eclipse editor mechanism, then you will have to refresh the
Pending Changes view in order to see those modifications.
And you are correct that there is no way to add a file from within the
Pending Changes view.
Cheers,
Geoff
On 1/27/2012 2:53 PM, molcikas wrote:
Is it possible to add files to a component from a local workspace
without having to create an Eclipse project in the local workspace? I
don't want the overhead of having to manage an Eclipse project and I
also don't like having the Eclipse dot-project file in the component.
If you load a component without having it create an Eclipse project,
the pending changes view does not automatically pick up new files in
the component and I don't see any way to add new files from within
the pending changes view.
And you are correct that there is no way to add a file from within the
Pending Changes view.
In the "Pending Changes" view of RTC 3.0.1, there is a button "Refresh Remote Changes". Next to it, you can drop down further options which also allow you to "Refresh Sandbox", which will then scan your sandbox for changes. This includes added and removed files, not only modified files. To at least some extent RTC even figures out if you rename files, but I haven't used this a lot yet.
That said, you can also have RTC automatically generate the .project files and nobody forces you to version-control them. Just use them as throw-away files like the whole workspace is scrap space that can be discarded without loss. I haven't tried this way of using RTC though, but it should work.
Good luck!
Uli
To be clear, you can have use "refresh" to make the Pending Changes view
recognize files added externally to the sandbox, but you cannot actual
create a new file from within the Pending Changes view.
Cheers,
Geoff
On 1/30/2012 4:38 AM, ulricheckhardt wrote:
recognize files added externally to the sandbox, but you cannot actual
create a new file from within the Pending Changes view.
Cheers,
Geoff
On 1/30/2012 4:38 AM, ulricheckhardt wrote:
gmclemmwrote:
And you are correct that there is no way to add a file from within
the
Pending Changes view.
In the "Pending Changes" view of RTC 3.0.1, there is a
button "Refresh Remote Changes". Next to it, you can drop
down further options which also allow you to "Refresh
Sandbox", which will then scan your sandbox for changes.
This includes added and removed files, not only modified files. To at
least some extent RTC even figures out if you rename files, but I
haven't used this a lot yet.
That said, you can also have RTC automatically generate the .project
files and nobody forces you to version-control them. Just use them as
throw-away files like the whole workspace is scrap space that can be
discarded without loss. I haven't tried this way of using RTC though,
but it should work.
Good luck!
Uli