9 Jul 14:45
Compiler Errors: Namespaces not recognized by the NAnt "booc" task
From: Hannes Restel <hannes.restel@...>
Subject: Compiler Errors: Namespaces not recognized by the NAnt "booc" task
Newsgroups: gmane.comp.lang.boo.user
Date: 2008-07-09 12:46:57 GMT
Subject: Compiler Errors: Namespaces not recognized by the NAnt "booc" task
Newsgroups: gmane.comp.lang.boo.user
Date: 2008-07-09 12:46:57 GMT
Hi all,
I want to compile my Boo project via the "booc" task in NAnt instead of
using the Sharp Develop IDE.
My project has got it's own namespace ("my_namespace") and subnamespaces
such as "my_namespace.personalized" or "my_namespace.sub2".
When calling the NAnt booc task, I get following error messages, so that
the program doesn't compile properly.
Example:
"[booc] U:\.....\src\Qualityreport.boo(7,8): BCE0021:
Boo.Lang.Compiler.CompilerError: Namespace 'my_namespace.personalized'
not found, maybe you forgot to add an assembly reference?"
And a few lines above, the console tells me this:
"[booc] U:\.....\src\Qualityreport.boo(7,8): import reference
'my_namespace.personalized' bound to error."
So what's wrong..? How do I include my sub-namespace?
Is it by using the "references" element in the NAnt booc task? But how?
Here's my NAnt code:
<?xml version="1.0" ?>
<project name="myProj" default="build">
<property name="boo.dir" value="D:\Programe\boo-0.8.2\bin" />
<property name="projectDir" value="U:\.....\" />
<property name="srcDir" value="${projectDir}/src" />
<property name="binDir" value="${projectDir}/MyBinaries" />
<property name="resourcesDir" value="${projectDir}/resources" />
<property name="libDir" value="${projectDir}/lib" />
<target name="build" depends="build_executable" />
<target name="build_executable">
<echo message="..Compiling and generating executables for the
project '${projectName}':" />
<loadtasks assembly="${boo.dir}/Boo.NAnt.Tasks.dll" />
<booc output="${binDir}/${projectName}.exe" target="winexe"
verbose="true">
<sources basedir="${srcDir}/">
<include name="*.boo" />
</sources>
<resources basedir="${resourcesDir}">
<include name="*.resx" />
<include name="*.png" />
<include name="*.jpg" />
<include name="*.gif" />
<include name="*.ico" />
</resources>
</booc>
</target>
</project>
Thanks a lot for helping!
P.S.:
So far, I wasn't able to find a good/well documented non-trivial example
for a NAnt booc task which covers my problem...
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
RSS Feed