The target <build.portlets> is what I'm executing and getting the problem descriibed below.
My problem lies anywhere where i use a property from the first default.build file that i use to call everything else. So a property such as ${portal.builds} referenced in the announcements.build file would resolve to "C:\inetpub\wwwroot\rsiportal\controls\rockwellsoftware.portal\announcments\builds" instead of the "C:\inetpub\wwwroot\rsiportal\builds" that was set in the parent build file
It also appears that i can't use the "../../" syntax anymore to move up a subdirectory it was if it was just being interpreted as a command and not a operator to move up subdirectories.
Any help you could provide would be greatly appreciated.
Thanks,
Mike
*******************************************************************************
<project name="FactoryTalk Portal Framework" basedir="." default="dev" xmlns="http://nant.sf.net/schemas/MSITask.xsd">>
<property name="debug" value="true" />
<property name="builds.dir" value="Builds" />
<property name="portaltasks.dir" value="${builds.dir}\RockwellSoftware.Portal.Tasks" />
<property name="portalrecords.dir" value="${builds.dir}\RockwellSoftware.Portal.Records" />
<property name="coreapi.dir" value="${builds.dir}\RockwellSoftware.Portal.Core" />
<property name="portletapi.dir" value="${builds.dir}\RockwellSoftware.Portal.Portlets" />
<property name="portaltests.dir" value="${builds.dir}\RockwellSoftware.Portal.Tests" />
<property name="portal.msi.output.name" value="RSIPortalSDKSetup.msi" />
<property name="portal.msi.product.name" value="Rockwell Software Portal" />
<property name="portal.msi.product.version" value="3.00.00.00" />
<property name="portal.build.title" value="Athena Release" />
<property name="portal.msi.manufacturer" value="Rockwell Software" />
<property name="portal.msi.virtualdirectory.name" value="RSIPortal" /> <property name="builds.basedir" value="D:\Builds" /> <property name="portal.basedir" value="." /> <property name="draco" value="false" /> <property name="nightlyBuild" value="false" /> <property name="debug" value="true" /> <property name="tasks.debug" value="true" />
<property name="build.month" value="MM" />
<property name="build.day" value="DD" />
<property name="build.year" value="YYYY" />
<property name="build.time" value="HHMMSS" />
<property name="portal" value=""/>
<property name="portal.src" value="src" />
<property name="portal.controls" value="Controls" />
<property name="portal.controls.framework" value="Controls\RockwellSoftware.Portal\Framework" />
<property name="portal.controls.framework.images" value="Controls\RockwellSoftware.Portal\Framework\Images" />
<property name="portal.controls.framework.scripts" value="Controls\RockwellSoftware.Portal\Framework\Scripts" />
<property name="portal.controls.framework.stylesheets" value="Controls\RockwellSoftware.Portal\Framework\Stylesheets" />
<property name="portal.bin" value="bin" />
<property name="portal.docs" value="Docs" />
<property name="portal.branding" value="Branding" />
<property name="portal.builds" value="Builds" />
<property name="portal.nos" value="NOS" />
<property name="portal.nant" value="NAnt" />
<property name="portal.uploads" value="uploads" />
<property name="portal.install" value="install" />
<property name="runtime.lib" value="RockwellSoftware.Portal.dll" />
<property name="runtime.pdb" value="RockwellSoftware.Portal.pdb" />
<property name="runtime.lib.xml" value="RockwellSoftware.Portal.xml" />
<property name="portaltasks.lib" value="RockwellSoftware.Portal.Tasks.dll" />
<property name="portaltasks.pdb" value="RockwellSoftware.Portal.Tasks.pdb" />
<property name="nant.builds.dir" value="${portal.builds}\SourceForge\NAnt" />
<!-- build.portlets: Builds portlet projects -->
<target name="build.portlets" description="Builds portlet projects">
<nant buildfile="Controls\Default.build" verbose="true" target="build" inheritall="true" failonerror="true" />
</target>
</project>
***************************************************************************** Controls\Default.build ***************************************************************************** <project name="RSIPortlets" default="build">
<!--*************************************************************************-->
<!--* Builds the portlets in all subdirectories *-->
<!--*************************************************************************-->
<target name="build" description="Builds the portlets in all subdirectories">
<foreach item="Folder" in="." property="companyname.folder">
<foreach item="Folder" in="${companyname.folder}" property="portletname.folder">
<available type="File" resource="${portletname.folder}\Default.build" property="buildfile.present" />
<if test="${buildfile.present}">
<nant buildfile="${portletname.folder}\Default.build" target="build" inheritall="true" failonerror="true" />
</if>
</foreach>
</foreach>
</target>
*****************************************************************************
One of my many build files in subdirectories
*****************************************************************************
<project name="RockwellSoftware.Announcements" default="build">
<property name="company.name" value="RockwellSoftware" />
<property name="portlet.name" value="Announcements" />
<property name="portlet.manufacturer" value="Rockwell Software" />
<property name="portlet.namespace" value="RockwellSoftware.Announcements.AnnouncementsPortlet" />
<property name="portlet.supportedportals" value="ALL" />
<property name="portlet.sdkversion" value="2.20.0.6" />
<!-- Include General Portlet functions/properties --> <include buildfile="../../../Builds\PortletGlobals.include" />
<property name="portlet.sourcedir" value="${company.name}.Portal" />
<property name="portlet.nos" value="${portlet.sourcedir}\${portlet.name}" />
<property name="portlet.install" value="${portal.install}\${portlet.name.full}" />
<property name="portlet.basedir" value="${portal.controls}\${portlet.sourcedir}\${portlet.name}" />
<property name="portlet.msms.dir" value="MergeModules" />
<property name="portlet.msm.id" value="PortletMSM_${portlet.id}" />
<msm sourcedir="${portlet.install}" output="${portlet.msm.output.name}" id="${portlet.msm.id}" version="${portlet.sdkversion}" debug="true" verbose="true">
<properties>
<property name="ProductName" value="${portlet.name.formal}" />
<property name="ProductVersion" value="${portlet.sdkversion}" />
<property name="Manufacturer" value="${portlet.manufacturer}" />
<property name="ARPCONTACT" value="${portlet.manufacturer}" />
<property name="ARPHELPLINK" value="${portlet.help.url}" />
<property name="ARPURLABOUT" value="${portlet.help.url}" />
<property name="ARPHELPTELEPHONE" value="${portlet.help.phone}" />
<property name="ProductCode" value="${portlet.guid.product}" />
<property name="UpgradeCode" value="${portlet.guid.upgrade}" />
<property name="ALLUSERS" value="2" />
<property name="REINSTALLMODE" value="emus" />
</properties>
****lots of msm stuff in here to package the portlet**********
</msm>
<ifnot propertytrue="fromMSITarget">
<copy file="${portlet.install}\${portlet.msm.output.name}" todir="." failonerror="false" />
<delete dir="${portlet.install}" failonerror="false" />
<mkdir dir="${portlet.install}" failonerror="false" />
<mkdir dir="${portal.builds}\${company.name}\Portlets" failonerror="false" />
<delete file="${portal.builds}\${company.name}\Portlets\${portlet.msm.output.name}" failonerror="false" />
<copy file="${portlet.msm.output.name}" todir="${portal.builds}\${company.name}\Portlets" overwrite="true" failonerror="false" />
<move file="${portlet.msm.output.name}" todir="${portlet.install}" failonerror="false" />
<call target="msm.addlocation" /> </ifnot>
***************************************************************************
----Original Message Follows----
From: "Gert Driesen" <[EMAIL PROTECTED]>
To: "Mike Stephens" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Subject: Re: [Nant-users] <nant> <include> relative paths are not correct.
Date: Tue, 4 May 2004 16:53:15 +0200
Mike,
Please provide a repro for this issue (meaning actual build files without unrelevant targets).
Thanks
Gert
----- Original Message ----- From: "Mike Stephens" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, May 04, 2004 4:24 PM Subject: RE: [Nant-users] <nant> <include> relative paths are not correct.
> Is anyone else having this problem or am I doing something incorrectly?
>
> Thanks,
>
> Mike
>
>
> ----Original Message Follows----
> From: "Mike Stephens" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [Nant-users] <nant> <include> relative paths are not correct.
> Date: Wed, 28 Apr 2004 13:21:10 +0000
>
> I'm using NAnt and NAntContrib .85 from the last day or two from cvs and I
> have noticed over the last several days that the relative paths for the
> <nant> and <include> tasks are no longer what one would expect them to be.
> It seems that any build files that are launched by the <nant> or <include>
> tasks would have a relative path of the subdirectory of the include file
> instead of the path of the parent Default.build file.
>
> example:
> C:\builds\Default.build //main build file
> in the Default.build file
> <property name="portlets.dir" value="portlets"> //portlets directory
> <includes name="portlets\announcement\ann.include" inheritall="true"/>
> C:\builds\portlets\announcement\ann.include //portlet build file
> The problem presents itself here when you try to access any properties
that
> were set by the parent build file. All of the properties from the parent
> build file now are relative to the C:\builds\portlets\announcement
directory
> instead of from the C:\builds directory.
> So if i were to try to write something back to the C:\builds\portlets
> directory using the property set in the parent build file
> <copy todir="${portlets.dir}" overwrite="true">
> <fileset basedir="${portlet.bin}">
> <includes name="*.dll" />
> </fileset>
> </copy>
> the value of ${portlets.dir} from the parent directory should be equal to
> "C:\builds\portlets" but now the value is going do be returned as
> "C:\builds\portlets\announcments\portlets".
> I am not rewriting the value of ${portlets.dir} in my portlet build file,
> this value is only set in the parent directory.
>
> Any help would be appreciated,
>
> Thanks,
>
> Mike
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.com/go/onm00200415ave/direct/01/
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
> _________________________________________________________________
> Watch LIVE baseball games on your computer with MLB.TV, included with MSN
> Premium!
>
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/dire
ct/01/
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
_________________________________________________________________
Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users