cancel
Showing results for 
Search instead for 
Did you mean: 

Automated builds with Ant

Former Member
0 Kudos

I'm working with EP 6.0 SP 6.

I'm trying to figure out how to build a PAR using Ant. Dev Studio Help explains how to add Ant build script tasks to a project build process but it does not address how to actually build a par using Ant. My goal is to actually run an automated nightly build from a script so I need to know how to build a par with Ant - looks like this was documented in PDK 5.0.

I've read posts to this forum before (I think from Sept/Oct 04) on this subject but I don't seem to have access to the documents referenced in the replies.

The Getting Started: PDK (EP 5) doc links to localhost files - not very helpful to me. And I'm not sure how much of that information has changed in PDK 6.0.6.

Any information on this would be very helpful.

Thanks,

Scott

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Scott,

I think it makes most sense to build a PAR the classical way (i.e. using SAP's plugins), rename the file to *.zip and peek into it for determining its structure and contents.

Then is shouldn't be a big deal for creating your own script. I did this several times because SAP's PAR exporter sometimes does not clean up properly its temp files.

Regards,

Dominik

Former Member
0 Kudos

Great!

I wasn't sure if there were some plugin build processes that needed to be run from the build script but if that's all I need to do - compile and stuff into the .par file with the correct folder structure - then that should be easy enough.

Thanks,

Scott

Answers (1)

Answers (1)

Former Member
0 Kudos

hi scott,

is this what you mean?

<target name="par" description="SAP EP portal archive" depends="">

<zip zipfile="$.par">

<zipfileset dir="PORTAL-INF" prefix="PORTAL-INF"/>

</zip>

</target>

or you need the entire script how to get to the par from soure code?

regards,

ds

Former Member
0 Kudos

If you have a sample build.xml that you could send me that would be great (my email:skagels@centra.com). But if all I have to do is add targets for compiling and zipping to the par file then I can do that. I was just afraid there might be some plugin processes that I'd have to run that I wasn't aware of. The build.xml would be very helpful.

Thanks,

Scott