google-code-backups / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Error on registering deliverable #168

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Log: 
 [error]  [2008-05-19 13:22:22-Europe/Kiev] [build] Telme: Registering
deliverable: ->/var/xinc/status/Telme/20080519/1211192156/deliverable/ failed.
 [error]  [2008-05-19 13:22:22-Europe/Kiev] [build] Telme: --  is not
within project dir. Security Problem.

Project file:

<publishers>
<deliverable file="${project.home}/builds/release-${build.label}.tar.gz" />
...
<onsuccess>
                                <phingPublisher
buildfile="${project.home}/publish.xml" target="build"/>
</onsuccess>
</publishers>

publisher.xml:
<?xml version="1.0" encoding="UTF-8"?>

<project name="Telme" default="all" basedir=".">
        <property file="./build.properties" />

        <target name="build" description="Publish built files">
                <mkdir dir="${project.home}/builds"/>

                <tar
destfile="${project.home}/builds/release-${xinc.buildlabel}.tar.gz"
compression="gzip">
                        <fileset dir="${project.build.dir}">
                                <include name="**/**" />
                        </fileset>
                </tar>
        </target>

</project>

$ ls -la /var/xinc/projects/Telme/builds
total 656508
drwxr-xr-x  2 root root     4096 2008-05-19 13:22 .
drwxr-xr-x 14 root root     4096 2008-05-19 13:23 ..
...
-rw-r--r--  1 root root 72246881 2008-05-19 11:02 release-BUILD.30.tar.gz
-rw-r--r--  1 root root 12054266 2008-05-19 13:23 release-BUILD.31.tar.gz
...

Original issue reported on code.google.com by kingo...@gmail.com on 19 May 2008 at 10:34

GoogleCodeExporter commented 8 years ago
Do this instead:

<publishers>

...
<onsuccess>
                              <phingPublisher
buildfile="${project.home}/publish.xml" target="build"/>
<deliverable file="${project.home}/builds/release-${build.label}.tar.gz" />
</onsuccess>
</publishers>

Otherwise you try to publish a deliverable before its generated.

Original comment by arnos...@gmail.com on 19 May 2008 at 10:36

GoogleCodeExporter commented 8 years ago
I see

Original comment by kingo...@gmail.com on 19 May 2008 at 10:45

GoogleCodeExporter commented 8 years ago
Same error message but in other place:
 [error]  [2008-05-23 21:05:58-Europe/Kiev] [build] diy-telme: Registering doc:
->/var/xinc/status/diy-telme/20080523/1211565958/documentation/PHPDoc 
Documentation/
failed.
 [error]  [2008-05-23 21:05:58-Europe/Kiev] [build] diy-telme: --  is not within
project dir. Security Problem.

Original comment by kingo...@gmail.com on 12 Jun 2008 at 8:37

GoogleCodeExporter commented 8 years ago
Hi folks, 
I'm having the same problem ... I followed the advice by Arno and rearanged the 
tags,
but without success. I'm attaching my buildfiles, maybe this helps a bit...

Kind regards,
Mario

Original comment by mario.mu...@gmail.com on 12 Jun 2008 at 11:32

Attachments:

GoogleCodeExporter commented 8 years ago
Oleg:

/var/xinc/status/diy-telme/20080523/1211565958/documentation/PHPDoc 
Documentation/

Is there a space for real in the path name?

I need to check the code, but I think there might be the problem in your case.

Try to generate the phpdoc in this path:

/var/xinc/status/diy-telme/20080523/1211565958/documentation/phpdoc/

And then please tell me if it works for you.

Original comment by arnos...@gmail.com on 12 Jun 2008 at 11:54

GoogleCodeExporter commented 8 years ago
Its real:

oleg@shoom-alpha:~$ ls
/var/xinc/status/diy-telme/20080523/1211565958/documentation/PHPDoc\ 
Documentation/

Original comment by kingo...@gmail.com on 12 Jun 2008 at 11:56

GoogleCodeExporter commented 8 years ago
here is the code snippet for this problem:
Xinc_Plugin_Repos_Documentation::registerDocumentation
..
$build->debug('Trying to register documentation: ' . $sourceFile);
$sourceFile = realpath($sourceFile);
...

$sourceFile is false afterwards, that means that the path does not exist.

Please check if thats the case.

Original comment by arnos...@gmail.com on 12 Jun 2008 at 12:00

GoogleCodeExporter commented 8 years ago
Then please try to register:

<documentation file="documentation/PHPDoc\ Documentation/"..../>

Original comment by arnos...@gmail.com on 12 Jun 2008 at 12:02

GoogleCodeExporter commented 8 years ago
Now it looks like:

<documentation file="${project.build.dir}/docs/apidocs/html/"
                                          alias="PHPDoc Documentation" 

index="${project.build.dir}/docs/apidocs/html/index.html"/> 

Original comment by kingo...@gmail.com on 12 Jun 2008 at 12:20

GoogleCodeExporter commented 8 years ago
please try

<documentation file="${project.build.dir}/docs/apidocs/html/"
                                          alias="PHPDoc" 

index="${project.build.dir}/docs/apidocs/html/index.html"/> 

to see if thats the problem.

thx

Original comment by arnos...@gmail.com on 12 Jun 2008 at 12:29

GoogleCodeExporter commented 8 years ago
I have an other project under xinc with same line in xml, and it is built fine.

Original comment by kingo...@gmail.com on 12 Jun 2008 at 12:53

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 11:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Cannot reproduce with 2.3alpha2, so I will close this issue, please open 
another one, if it isn't resolved for you.

Original comment by opitz.al...@googlemail.com on 27 Aug 2013 at 11:07