Re: [Hypercontent-users] Not found and not authorized error messages problem with trailing slash
Brought to you by:
alexvigdor
From: Alex V. <al...@bi...> - 2007-02-20 15:50:52
|
Hi, Try putting your custom href after the render command, e.g. <event name="build" permissions="build"> <variable name="builder" value="${actor}"/> <render delete="true" destination="/build/" force="false"/> <variable name="href" value="${abs-project-base}/my-screen.html"/> <nq who="${builder}"/> <nq q="building"/> </event> <event name="build-all" permissions="build"> <variable name="builder" value="${actor}"/> <render delete="true" destination="/build/" force="false" path="/"/> <variable name="href" value="${abs-project-base}/my-screen.html"/> <nq who="${builder}"/> <nq q="building"/> </event> The render and copy commands set the HREF to the target filesystem base-url, but placing your custom href after the command will override that. Cheers, Alex On Feb 19, 2007, at 12:23 AM, tom tom wrote: > Hi, > > In order to get rid of the error message which comes > after the build, introduced a custom error message > > > <variable name="href" > value="${abs-project-base}/my-screen.html"/> > > but still it showed the same error, > > > As I wanted the constant error message in project > definition in the build url I gave the following > > <build > base-url="http://localhost:8080/hypercontent/testproject/testfolder/ > buildmessage.html"> > − > <filesystem-def name="Author" type="local"> > <argument index="0" > value="/home/test/installations/hypercontent/build"/> > </filesystem-def> > </build> > > > Well then it looks ok but instead of going to base-url > it goes to base-url/ > How can I get rid of the last traling "/" from where > it get appended. > > > Irrespective of where build or buildAll I want to show > the same my-message.html, > > > my build.xml looks as follows > > <workflow binding="/**/,/**/*.*"> > − > <event name="build" permissions="build"> > <variable name="builder" value="${actor}"/> > <render delete="true" destination="/build/" > force="false"/> > <nq who="${builder}"/> > <nq q="building"/> > </event> > − > <event name="build-all" permissions="build"> > <variable name="builder" value="${actor}"/> > <render delete="true" destination="/build/" > force="false" path="/"/> > <nq who="${builder}"/> > <nq q="building"/> > </event> > − > <event name="view-built" permissions="read"> > <redirect location="${abs-project-base}/build/"/> > </event> > − > <q id="building"> > − > <event name="batch-complete"> > <dq/> > <nq q="built"/> > </event> > </q> > − > <q id="built"> > − > <event name="batch-reset"> > <dq/> > <nq q="building"/> > </event> > − > <event name="discard" who="${builder}"> > <dq/> > <dq who="${builder}"/> > </event> > </q> > </workflow > > > Thanks > > > > > ______________________________________________________________________ > ______________ > No need to miss a message. Get email on-the-go > with Yahoo! Mail for Mobile. Get started. > http://mobile.yahoo.com/mail > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |