Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_cn
Articles_de
Articles_pt
Articles_zh




JSPWiki v2.2.33

[RSS]


Hide Menu

TestData


Difference between version 10 and version 9:

At line 30 added 1 line.
Next you want to map the schema of the tables that you want to generate data for. To do this, you will make a new file called appfuse-schema.xml. This example will allow you to generate 1500 new users at a time.
At line 31 removed 1 line.
At line 33 removed 42 lines.
<project name="dbmonster task example" default="gendb" basedir=".">
<property file="build.properties"/>
<!-- setup classpath -->
<path id="dbmonster.classpath">
<fileset dir="${dbmonster.ant}">
<include name="*.jar"/>
</fileset>
<fileset dir="${dbmonster.home}">
<include name="**/*.jar"/>
</fileset>
</path>
<taskdef
name="dbmonster"
classname="pl.kernelpanic.dbmonster.ant.DBMonsterTask"
classpathref="dbmonster.classpath">
</taskdef>
<target name="gendb">
<dbmonster
config="${dbmonster.config}/dbmonster.properties" verbose="true">
<fileset dir="${dbmonster.schemas}">
<include name="*.xml"/>
</fileset>
</dbmonster>
</target>
</project>
}}}
{{{
dbmonster.home=/tools/dbmonster-core-1.0.3
dbmonster.ant=/tools/monster
dbmonster.config=/tools/dbmonster-core-1.0.3/config
dbmonster.schemas=/tools/dbmonster-core-1.0.3/schema
}}}
{{{
At line 118 added 45 lines.
----
{{{
<project name="dbmonster task example" default="gendb" basedir=".">
<property file="build.properties"/>
<!-- setup classpath -->
<path id="dbmonster.classpath">
<fileset dir="${dbmonster.ant}">
<include name="*.jar"/>
</fileset>
<fileset dir="${dbmonster.home}">
<include name="**/*.jar"/>
</fileset>
</path>
<taskdef
name="dbmonster"
classname="pl.kernelpanic.dbmonster.ant.DBMonsterTask"
classpathref="dbmonster.classpath">
</taskdef>
<target name="gendb">
<dbmonster
config="${dbmonster.config}/dbmonster.properties" verbose="true">
<fileset dir="${dbmonster.schemas}">
<include name="*.xml"/>
</fileset>
</dbmonster>
</target>
</project>
}}}
{{{
dbmonster.home=/tools/dbmonster-core-1.0.3
dbmonster.ant=/tools/monster
dbmonster.config=/tools/dbmonster-core-1.0.3/config
dbmonster.schemas=/tools/dbmonster-core-1.0.3/schema
}}}

Back to TestData, or to the Page History.