Hello again,

When I build my project the resources files stay the same, no
filtering is performed. My pom file is as follow:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 <parent>
   <artifactId>aliasfox</artifactId>
   <groupId>com.sinergiainc.aliasfox</groupId>
   <version>1.0-SNAPSHOT</version>
 </parent>
 <modelVersion>4.0.0</modelVersion>
 <groupId>com.sinergiainc.aliasfox.commons</groupId>
 <artifactId>commons</artifactId>
 <name>commons</name>
 <version>1.0-SNAPSHOT</version>
 <url>http://maven.apache.org</url>
 <build>
   <filters>
     <filter>src/test/filters/cache.properties</filter>
   </filters>
   <resources>
     <resource>
       <directory>src/test/resources</directory>
       <filtering>true</filtering>
     </resource>
   </resources>
 </build>
 <dependencies>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>3.8.2</version>
     <scope>test</scope>
   </dependency>
   <dependency>
     <groupId>jcs</groupId>
     <artifactId>jcs</artifactId>
     <version>20030822.182132</version>
   </dependency>
   <dependency>
     <groupId>org.slf4j</groupId>
     <artifactId>slf4j-log4j13</artifactId>
     <version>1.0.1</version>
   </dependency>
   <dependency>
     <groupId>commons-lang</groupId>
     <artifactId>commons-lang</artifactId>
     <version>2.2</version>
   </dependency>
 </dependencies>
</project>

My cache.properties file has the following:

# Cache configuration for testing
cache.maxobjects=1000
cache.shrinker.active = true
cache.shrinker.interval = 15
cache.shrinker.idletime = 30
cache.iseternal = false
cache.disk.path = c:/some/path
cache.disk.keysize = 100000

My cache.cff file has the following:

# DEFAULT CACHE REGION
jcs.default = DC
jcs.default.cacheattributes = org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects = 1000
jcs.default.cacheattributes.MemoryCacheName =
org.apache.jcs.engine.memory.lru.LRUMemoryCache

# PRE-DEFINED CACHE REGIONS
jcs.region.plainResources = DC
jcs.region.plainResources.cacheattributes =
org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.plainResources.cacheattributes.MaxObjects = ${cache.maxobjects}
jcs.region.plainResources.cacheattributes.MemoryCacheName =
org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.plainResources.cacheattributes.UseMemoryShrinker =
${cache.shrinker.active}
jcs.region.plainResources.cacheattributes.ShrinkerIntervalSeconds =
${cache.shrinker.interval}
jcs.region.plainResources.cacheattributes.MaxMemoryIdleTimeSeconds =
${cache.shrinker.idletime}
jcs.region.plainResources.cacheattributes.MaxSpoolPerRun = 500
jcs.region.plainResources.elementattributes =
org.apache.jcs.engine.ElementAttributes
jcs.region.plainResources.elementattributes.IsEternal = ${cache.iseternal}


# AVAILABLE AUXILIARY CACHES
jcs.auxiliary.DC = org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes =
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath = ${cache.disk.path}
jcs.auxiliary.DC.attributes.maxKeySize = ${cache.disk.keysize}

And running the test goal (I tried runing resources:resources as
well). No matter how I run maven, i.e.:

mvn process-test-resources -Dcache.maxobjects="1000"

or changing the pom to define parameters using <properties>, they are
ignored. What can be happening?

Cheers,
Daniel del Castillo
--
-DdC

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

Reply via email to