This is a bug I fixed yesterday. The problem surfaces when you try to
generate objects and there aren't any tables to generate code for.

Matt

On 9/20/07, Lee Rosen <[EMAIL PROTECTED]> wrote:
> I was trying to generate model objects from a SQL
> server database and
> got an error stating "Parameter 'directory' is not a
> directory" (see
> full trace below).  I have not been able to figure out
> what to do to
> correct the problem, since the documentation on the
> AMP is still so
> sparse.
>
> Any clues would be helpful and most appreciated.
> Thanks.
>
> -- Lee Rosen
>
> Details of installation and environment:
>
>         Only an Appfuse Core modular archtype installed
> against a SQL Server 2005 DB
>         Java 1.6
>         CentOS 5 Linux
>
> I performed the following steps to get to this point:
>
>         - Initial download of Core archtype per the
> quickstart guide.
>
>         - Changed pom.xml so that the mssql profile and
> default piointed to my DB
>
>         - Ran 'mvn install -Psqlserver' to add in appfuse
> initial tables and have it run initial test.
>
>         - Added target/test-classes/hibernate.reveng.xml to
> force selection of only the desired tables by addin
> the following line.
>                 <schema-selection match-catalog="gogrid_2"
> match-schema="dbo" match-table=".*"/>
>
>         - Ran 'mvn appfuse:gen-model -Psqlserver'
>
> Trace:
>
> [INFO] [appfuse:gen-model]
> [INFO] Configuration XML file loaded:
> /home/leer/gogridCSA/src/main/resources/hibernate.cfg.xml
> [INFO] Configuration Properties file loaded:
> /home/leer/gogridCSA/target/test-classes/jdbc.properties
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Parameter 'directory' is not a directory
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.IllegalArgumentException: Parameter
> 'directory' is not a directory
>         at
> org.apache.commons.io.FileUtils.listFiles(FileUtils.java:292)
>         at
> org.apache.commons.io.FileUtils.listFiles(FileUtils.java:377)
>         at
> org.apache.commons.io.FileUtils.iterateFiles(FileUtils.java:395)
>         at
> org.appfuse.mojo.exporter.ModelGeneratorMojo.execute(ModelGeneratorMojo.java:165)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at
> org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at
> java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at
> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Thu Sep 20 10:04:39 PDT 2007
> [INFO] Final Memory: 14M/76M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> ____________________________________________________________________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, 
> news, photos & more.
> http://mobile.yahoo.com/go?refer=1GNXIC
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to