<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Copyright 2008 the original author or authors. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
--> | |
<!-- Spring Framework configuration for FakeFtpServer --> | |
<!-- The FakeFtpServerSpringCofigurationTest class has dependencies on | |
several of the bean names and values configured within this file --> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> | |
<bean id="fakeFtpServer" class="org.mockftpserver.fake.FakeFtpServer"> | |
<property name="serverControlPort" value="9981"/> | |
<property name="userAccounts"> | |
<list> | |
<bean class="org.mockftpserver.fake.UserAccount"> | |
<property name="username" value="joe"/> | |
<property name="password" value="password"/> | |
<property name="homeDirectory" value="c:\"/> | |
</bean> | |
</list> | |
</property> | |
<property name="fileSystem"> | |
<bean class="org.mockftpserver.fake.filesystem.WindowsFakeFileSystem"> | |
<property name="createParentDirectoriesAutomatically" value="false"/> | |
<property name="entries"> | |
<list> | |
<bean class="org.mockftpserver.fake.filesystem.DirectoryEntry"> | |
<property name="path" value="c:\"/> | |
<property name="permissionsFromString" value="rwxrwxrwx"/> | |
<property name="owner" value="joe"/> | |
<property name="group" value="users"/> | |
</bean> | |
<bean class="org.mockftpserver.fake.filesystem.FileEntry"> | |
<property name="path" value="c:\File1.txt"/> | |
<property name="contents" value="1234567890"/> | |
<property name="permissionsFromString" value="rwxrwxrwx"/> | |
<property name="owner" value="peter"/> | |
<property name="group" value="users"/> | |
</bean> | |
<bean class="org.mockftpserver.fake.filesystem.FileEntry"> | |
<property name="path" value="c:\File2.txt"/> | |
<property name="contents" value="abcdefghijklmnopqrstuvwxyz"/> | |
<property name="permissions"> | |
<bean class="org.mockftpserver.fake.filesystem.Permissions"> | |
<constructor-arg value="rwx------"/> | |
</bean> | |
</property> | |
<property name="owner" value="peter"/> | |
<property name="group" value="users"/> | |
</bean> | |
</list> | |
</property> | |
</bean> | |
</property> | |
</bean> | |
</beans> |