On Fri, Dec 12, 2008 at 11:54 AM, Amit Rana <[email protected]> wrote:

> Hi,


Hi!


>
>
> I try running generate.py build command from command prompt and it works
> fine (generating the build folder containing resource, script and
> index.html) as mentioned on
> http://qooxdoo.org/documentation/0.8/application_structure.
>
> But, when I run this a a job (ANT script) from my xml file as :
>
> <target name="makeBuild" >
>             <exec executable="cmd" dir="${basedir}/WebContent/js/custom" >
>                <arg value="/c"/>
>                <arg value="generate.py build"/>
>             </exec>
>    </target>
>
> then, it only creates the build folder with resource and script folder
> (no script-0.js) and doesn't generate the index.html too.
>
> I use to do similar thing in v0.7 and it worked fine. Any ideas ?
>
>
Try with ./generate.py:

      <arg value="./generate.py build"/>

generate.py has the line

    os.chdir(os.path.dirname(sys.argv[0]))  # switch to skeleton dir

This will fail when sys.argv[0] has no slash, because
os.path.dirname(sys.argv[0]) returns an empty string

   $ python generate.py
   Traceback (most recent call last):
     File "generate.py", line 33, in <module>
       os.chdir(os.path.dirname(sys.argv[0]))  # switch to skeleton dir
   OSError: [Errno 2] No such file or directory: ''

   $ python ./generate.py
   Usage: generator.py [options] job,...
   [...]
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to