cancel
Showing results for 
Search instead for 
Did you mean: 

PAR-File deployment with ANT (EP6)

Former Member
0 Kudos

Hi everybody out there,

has anybody tried using Ant for building and deploying a Par-File.

A example script would be highly appreciated.

Greetings

Walter

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Walter,

for building PARs there is the build.xml included within Java Devleopment Role --> Development --> Download --> ANT support.

For deployment you would have to write your own ANT task.

Hope it helps

Detlev

PS: This was a long vacation, wasn't it?!

Former Member
0 Kudos

Dear Detlev,

vacation only from the portal.....

Some other IT themes performing very well and they need some care

But back on stage - I'm looking forward for some interesting topics on SDN.

Walter

PS.: Problem solved

Message was edited by: Walter Mattes

detlev_beutner
Active Contributor
0 Kudos

Dear Walter,

press the pencil button, edit my name, replace "f" by "v", and everything will be OK again

Cheers

Detlev

Former Member
0 Kudos

Hello,

.... the part which deploys the par-file to the server is missing. Any idea how to to this? I did this in a TomCat App (as far as I remember). But on WebAS????

Thanks

walter

detlev_beutner
Active Contributor
0 Kudos

Hi Walter,

> the part which deploys the par-file

> to the server is missing.

No really... this is why I wrote

  1. For deployment you would have to write

  2. your own ANT task.

BUT:

To make it easy, just implement a helper class with a main method and call it by an ant JAVA task. Pass all parameters needed, and within the main method of your helper class, write

File par = new File(dir, fileName);
DeployEngine engine = new DeployEngine(host, port, pwd, user);
engine.setDeleteMode(DeployEngine.DELETE_TRY);
engine.deploy(par);

The DeployEngine.class you will find within the standard Eclipse plugins.

Hope it helps

Detlev

Former Member
0 Kudos

> The DeployEngine.class you will find within the

> standard Eclipse plugins.

But where do I find com.sap.netweaver.ep.core.preferences.IServerConfig?

[javac] file com/sap/netweaver/ep/core/preferences/IServerConfig.class not found

Answers (0)