Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » release script
release script [message #723492] Thu, 08 September 2011 16:17 Go to next message
Patrick Geremia is currently offline Patrick GeremiaFriend
Messages: 79
Registered: July 2009
Member
Can't seem to get my release script to work.

Here from my package.bld

var srcRel = pkg.addRelease (pkgName + "_src");
var relScriptDir = xdc.getPackageBase("azcom.scripts");
....
....
srcRel.attrs.relScript = relScriptDir + "/src.rel";
....
....

And here is my src.rel file.

var manifest = xdc.useModule('xdc.bld.Manifest');
var files = [];

print("manifest");
for (var i = 0; i < manifest.files.length; i++)
{
var fname = manifest.files[i];
if (fname.match(/package\\/) != null)
{
/* omit */
}
else
{
/* add everything that's not handled above */
files.push(fname);
}
}

/* include ONLY those files named in the files array */
manifest.files = files;


The release still contains all the "package/" files.Am I missing anything?
Re: release script [message #723493 is a reply to message #723492] Thu, 08 September 2011 16:45 Go to previous messageGo to next message
Patrick Geremia is currently offline Patrick GeremiaFriend
Messages: 79
Registered: July 2009
Member
Ok. Made a mistake in my script.

if (fname.match(/package\\/) != null)
should be
if (fname.match(/package\//) != null)

Still my package directory is still in my release and contains the file
package.rel.xml. This file does not seem to be part of the manifest files.

Is there any way to solve this?

----------------------------------------------------------------------
From : Patrick Geremia <p-geremia@ti.com>
Date : Thu Sep 08 2011 18:17:31 GMT+0200 (CET)

> Can't seem to get my release script to work.
>
> Here from my package.bld
>
> var srcRel = pkg.addRelease (pkgName + "_src");
> var relScriptDir = xdc.getPackageBase("azcom.scripts");
> ....
> ....
> srcRel.attrs.relScript = relScriptDir + "/src.rel";
> ....
> ....
>
> And here is my src.rel file.
>
> var manifest = xdc.useModule('xdc.bld.Manifest');
> var files = [];
>
> print("manifest");
> for (var i = 0; i < manifest.files.length; i++)
> {
> var fname = manifest.files[i];
> if (fname.match(/package\\/) != null)
> {
> /* omit */
> }
> else
> {
> /* add everything that's not handled above */
> files.push(fname);
> }
> }
>
> /* include ONLY those files named in the files array */
> manifest.files = files;
>
>
> The release still contains all the "package/" files.Am I missing anything?
Re: release script [message #725495 is a reply to message #723493] Thu, 15 September 2011 00:03 Go to previous messageGo to next message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
On 9/8/2011 9:45 AM, Patrick Geremia wrote:

> Still my package directory is still in my release and contains the file
> package.rel.xml. This file does not seem to be part of the manifest files.
>
> Is there any way to solve this?
>
Unfortunately it is not currently possible. This file is added after
the release script runs. It is the last and only operation performed on
the release archive after the files specified by the release script are
archived.
Re: release script [message #725970 is a reply to message #725495] Fri, 16 September 2011 09:56 Go to previous message
Patrick Geremia is currently offline Patrick GeremiaFriend
Messages: 79
Registered: July 2009
Member
ok thanks.

----------------------------------------------------------------------
From : dave russo <d-russo@ti.com>
Date : Thu Sep 15 2011 02:03:54 GMT+0200 (CET)

>
>
> On 9/8/2011 9:45 AM, Patrick Geremia wrote:
>
>> Still my package directory is still in my release and contains the file
>> package.rel.xml. This file does not seem to be part of the manifest
>> files.
>>
>> Is there any way to solve this?
>>
> Unfortunately it is not currently possible. This file is added after the
> release script runs. It is the last and only operation performed on the
> release archive after the files specified by the release script are
> archived.
>
Previous Topic:access enums of a proxy
Next Topic:ARM cortex a8 and cortex A15 support
Goto Forum:
  


Current Time: Thu Apr 25 06:09:19 GMT 2024

Powered by FUDForum. Page generated in 0.03893 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top