This Question is Assumed Answered

1 "correct" answer available (5 pts) 14 "helpful" answers available (3 pts)
5 Replies Last post: May 15, 2008 7:17 PM by fukuta

How to deploy multiple projects for OCC?

May 15, 2008 2:49 AM

Click to view fukuta's profile Level 4 fukuta 47 posts since
Oct 17, 2007
Hi,
My application consists of two IDE projects, and I'd like to deploy these projects for OCC use.

First, I tried to create a 'curl-modules.txt'. (Is this approach going in the right direction?)
The document says
This special file can also be generated by the IDE, assuming that all delegates make use of relative paths that explicitly begin with the path to the curl-root.
But, I cannot find the way to generate it by the IDE.
Is it generated automatically if I choose the 'Deploy for OCC' on the IDE Project menu?
or does the document mean I can generate it if I use the 'create-curl-modules-file' procedure?

I'm using Curl 6.0.
Regards.
Click to view cbarber's profile Curl cbarber 49 posts since
Sep 27, 2007
1. Re: How to deploy multiple projects for OCC? May 15, 2008 7:04 AM
Deploying for OCC should be sufficient. The file should automatically be created if your project delegates to another project through a relative path.
Click to view cbarber's profile Curl cbarber 49 posts since
Sep 27, 2007
2. Re: How to deploy multiple projects for OCC? May 15, 2008 9:10 AM
in response to: cbarber
I think that it only creates the modules file if the relative path begins with "../". I am not sure whether the modules file should be needed for this case, but I assume that you are having trouble running the deployed OCC application or you would not be asking. Try modifying the path to PROJECT-B to start with .., e.g.:

{delegates to PROJECT-B, location = "../project-a/lib/b/manifest.mcurl"}


Hopefully someone with more direct knowledge of OCC will comment...
Click to view fukuta's profile Level 4 fukuta 47 posts since
Oct 17, 2007
3. Re: How to deploy multiple projects for OCC? May 15, 2008 9:47 AM
in response to: cbarber
Thank you for your reply.

I already tried that, but in vein.:(
I have also challenged the case that PROJECT-B is not underneath the PROJECT-A's directory, but it didn't go well, too.
Click to view dmccrae's profile Curl dmccrae 6 posts since
Oct 10, 2007
4. Re: How to deploy multiple projects for OCC? May 15, 2008 1:00 PM
in response to: fukuta
One simple approach is to incorporate the delegated library in the application project deployment.


{curl 6.0 manifest}
{manifest PROJECT-A}

{delegate-to PROJECT-B,
    location = "lib/b/manifest.mcurl"
}
{component directory PROJECT-B,
    location = "lib/b"
}


The 'directory' component causes the contents of the directory to be deployed,
and thus put into the car file, so the 'delegate-to' reference will be valid.

If you had more than one library, you could use a common library directory.


{curl 6.0 manifest}
{manifest PROJECT-A}

{delegate-to PROJECT-B,
    location = "lib/b/manifest.mcurl"
}
{delegate-to PROJECT-C,
    location = "lib/C/manifest.mcurl"
}
{component directory LIB,
    location = "lib"
}
Click to view fukuta's profile Level 4 fukuta 47 posts since
Oct 17, 2007
5. Re: How to deploy multiple projects for OCC? May 15, 2008 7:17 PM
in response to: dmccrae
Thank you a lot.
That is very helpful.