You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Nicolas Toper <nt...@gmail.com> on 2006/07/03 18:22:51 UTC
Config file and launch backup
Hello,
I am working on the main class of the backup tool (LaunchBackup class) and I
have a configuration question: the XML Config file is not specific to a
repository (it is fairly general option such what to backup and so on).
The main class should now which repository to backup. Would you like me to
specify this in the command line or in the XML Config file. Since the XML
file can be generic, I think it is more advisable to put it in
--
a+
Nico
my blog! http://www.deviant-abstraction.net !!
Re: Config file and launch backup
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 7/5/06, Nicolas Toper <nt...@gmail.com> wrote:
> In our earlier chat today, you used a method from RepositoryImpl create with
> two arguments: RepositoryImpl.create("repo.xml", "repo/"); I don't find it
> in the Javadoc nor in the code. What is the correct way to instantiate the
> right Repository providing I have all params?
Sloppy writing on my part. There's a
RepositoryImpl.create(RepositoryConfig) method that takes a
RepositoryConfig instance that you can create with a
RepositoryConfig.create("repo.xml", "repo/") call:
RepositoryCofnig config = RepositoryConfig.create("...", "...");
RepositoryImpl repository = RepositoryImpl.create(config);
BR,
Jukka Zitting
--
Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development
Re: Config file and launch backup
Posted by Nicolas Toper <nt...@gmail.com>.
Hi Jukka,
In our earlier chat today, you used a method from RepositoryImpl create with
two arguments: RepositoryImpl.create("repo.xml", "repo/"); I don't find it
in the Javadoc nor in the code. What is the correct way to instantiate the
right Repository providing I have all params?
Thanks
Nico
my blog! http://www.deviant-abstraction.net !!
On 7/4/06, Jukka Zitting <ju...@gmail.com> wrote:
>
> Hi,
>
> On 7/3/06, Nicolas Toper <nt...@gmail.com> wrote:
> > I am working on the main class of the backup tool (LaunchBackup class)
> and I
> > have a configuration question: the XML Config file is not specific to a
> > repository (it is fairly general option such what to backup and so on).
> >
> > The main class should now which repository to backup. Would you like me
> to
> > specify this in the command line or in the XML Config file. Since the
> XML
> > file can be generic, I think it is more advisable to put it in
>
> I think it's better left to the command line, at least as a starting
> point. Something like this:
>
> java org.apache.jackrabbit.Backup backup.xml repository.xmlrepository/
>
> BR,
>
> Jukka Zitting
>
> --
> Yukatan - http://yukatan.fi/ - info@yukatan.fi
> Software craftsmanship, JCR consulting, and Java development
>
Re: Config file and launch backup
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 7/3/06, Nicolas Toper <nt...@gmail.com> wrote:
> I am working on the main class of the backup tool (LaunchBackup class) and I
> have a configuration question: the XML Config file is not specific to a
> repository (it is fairly general option such what to backup and so on).
>
> The main class should now which repository to backup. Would you like me to
> specify this in the command line or in the XML Config file. Since the XML
> file can be generic, I think it is more advisable to put it in
I think it's better left to the command line, at least as a starting
point. Something like this:
java org.apache.jackrabbit.Backup backup.xml repository.xml repository/
BR,
Jukka Zitting
--
Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development