Skip to Content
author's profile photo Former Member
Former Member

Automated builds with Ant

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2004 at 12:02 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2004 at 04:15 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.