Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » excludeDirs not working when creating a release
excludeDirs not working when creating a release [message #756148] Fri, 11 November 2011 08:47 Go to next message
Patrick Geremia is currently offline Patrick GeremiaFriend
Messages: 79
Registered: July 2009
Member
In the below script, it looks like the excludeDirs has not effect. I
still have .svn in the release. Am I missing something?

------------------------------------------------------
var pkg = Pkg;
var pkgName = pkg.name.replace(/\./g, "_");
var build = xdc.useModule('xdc.bld.BuildEnvironment');
var scriptDir = xdc.getPackageBase("nash.scripts");

var binRel = pkg.addRelease(pkgName);
binRel.attrs.label = "bin";
binRel.otherFiles.$add("./arago");
binRel.otherFiles.$add("./arago-oe-dev");
binRel.otherFiles.$add("./mad-utils");
binRel.otherFiles.$add("./syslib");
binRel.otherFiles.$add("./ibl");
binRel.excludeDirs=[".svn"];
binRel.excludeDirs=[".git"];

var srcRel = pkg.addRelease(pkgName + "_src");
srcRel.attrs.label = "src";
srcRel.otherFiles.$add("./package.bld");
srcRel.otherFiles.$add("./arago");
srcRel.otherFiles.$add("./arago-oe-dev");
srcRel.otherFiles.$add("./mad-utils");
srcRel.otherFiles.$add("./syslib");
srcRel.otherFiles.$add("./ibl");
srcRel.excludeDirs=[".svn"];
srcRel.excludeDirs=[".git"];
srcRel.attrs.relScript = scriptDir + "/src.rel";

pkg.defaultRelease = binRel;


if (build.hostOS==build.WINDOWS)
{
pkg.attrs.archiver = "zip";
}
else
{
pkg.attrs.compress = true;
}
------------------------------------------------------
Re: excludeDirs not working when creating a release [message #756234 is a reply to message #756148] Fri, 11 November 2011 15:22 Go to previous messageGo to next message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
On 11/11/2011 12:47 AM, Patrick Geremia wrote:
> In the below script, it looks like the excludeDirs has not effect. I
> still have .svn in the release. Am I missing something?
>
> ------------------------------------------------------
[snip]

> srcRel.excludeDirs=[".svn"];
> srcRel.excludeDirs=[".git"];

I think you want
srcRel.excludeDirs=[".svn", ".git"];
Re: excludeDirs not working when creating a release [message #756523 is a reply to message #756234] Mon, 14 November 2011 08:12 Go to previous message
Patrick Geremia is currently offline Patrick GeremiaFriend
Messages: 79
Registered: July 2009
Member
Thanks.
I think I want vacation!

----------------------------------------------------------------------
From : dave russo <d-russo@ti.com>
Date : Fri Nov 11 2011 16:22:29 GMT+0100 (CET)

> On 11/11/2011 12:47 AM, Patrick Geremia wrote:
>> In the below script, it looks like the excludeDirs has not effect. I
>> still have .svn in the release. Am I missing something?
>>
>> ------------------------------------------------------
> [snip]
>
>> srcRel.excludeDirs=[".svn"];
>> srcRel.excludeDirs=[".git"];
>
> I think you want
> srcRel.excludeDirs=[".svn", ".git"];
Previous Topic:how to generate a custom memory map for rtsc based project
Next Topic:new XML(...) error
Goto Forum:
  


Current Time: Sat Apr 20 01:22:45 GMT 2024

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

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

Back to the top