diff options
author | Brett Porter <brett@apache.org> | 2006-09-15 11:03:30 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2006-09-15 11:03:30 +0000 |
commit | d221e70b911db4fd4f2dec2c9796eb3c367811ea (patch) | |
tree | 57f4ee47e1d2e512a4c8f3f8aa1cb95d635e08ac /archiva-core | |
parent | 352a0e03a54d9478fc8216abdaf6c61d6b9fb953 (diff) | |
download | archiva-d221e70b911db4fd4f2dec2c9796eb3c367811ea.tar.gz archiva-d221e70b911db4fd4f2dec2c9796eb3c367811ea.zip |
set correct line endings
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@446573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-core')
-rw-r--r-- | archiva-core/src/main/java/org/apache/maven/archiva/scheduler/RepositoryTaskJob.java | 114 | ||||
-rw-r--r-- | archiva-core/src/test/maven-1.x-repository/test/poms/relocated-v3artifact-1.0.0.pom | 54 |
2 files changed, 84 insertions, 84 deletions
diff --git a/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/RepositoryTaskJob.java b/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/RepositoryTaskJob.java index 2f0f600a2..f94ae2130 100644 --- a/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/RepositoryTaskJob.java +++ b/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/RepositoryTaskJob.java @@ -1,57 +1,57 @@ -package org.apache.maven.archiva.scheduler;
-
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * 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.
- */
-
-import org.apache.maven.archiva.scheduler.task.RepositoryTask;
-import org.codehaus.plexus.scheduler.AbstractJob;
-import org.quartz.JobDataMap;
-import org.quartz.JobExecutionContext;
-import org.quartz.JobExecutionException;
-
-/**
- * This class is the discoverer job that is executed by the scheduler.
- */
-public class RepositoryTaskJob
- extends AbstractJob
-{
- static final String TASK_KEY = "EXECUTION";
-
- /**
- * Execute the discoverer and the indexer.
- *
- * @param context
- * @throws org.quartz.JobExecutionException
- *
- */
- public void execute( JobExecutionContext context )
- throws JobExecutionException
- {
- JobDataMap dataMap = context.getJobDetail().getJobDataMap();
- setJobDataMap( dataMap );
-
- RepositoryTask executor = (RepositoryTask) dataMap.get( TASK_KEY );
- try
- {
- executor.execute();
- }
- catch ( TaskExecutionException e )
- {
- throw new JobExecutionException( e );
- }
- }
-
-}
+package org.apache.maven.archiva.scheduler; + +/* + * Copyright 2005-2006 The Apache Software Foundation. + * + * 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. + */ + +import org.apache.maven.archiva.scheduler.task.RepositoryTask; +import org.codehaus.plexus.scheduler.AbstractJob; +import org.quartz.JobDataMap; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +/** + * This class is the discoverer job that is executed by the scheduler. + */ +public class RepositoryTaskJob + extends AbstractJob +{ + static final String TASK_KEY = "EXECUTION"; + + /** + * Execute the discoverer and the indexer. + * + * @param context + * @throws org.quartz.JobExecutionException + * + */ + public void execute( JobExecutionContext context ) + throws JobExecutionException + { + JobDataMap dataMap = context.getJobDetail().getJobDataMap(); + setJobDataMap( dataMap ); + + RepositoryTask executor = (RepositoryTask) dataMap.get( TASK_KEY ); + try + { + executor.execute(); + } + catch ( TaskExecutionException e ) + { + throw new JobExecutionException( e ); + } + } + +} diff --git a/archiva-core/src/test/maven-1.x-repository/test/poms/relocated-v3artifact-1.0.0.pom b/archiva-core/src/test/maven-1.x-repository/test/poms/relocated-v3artifact-1.0.0.pom index 10823fe89..19978d1f7 100644 --- a/archiva-core/src/test/maven-1.x-repository/test/poms/relocated-v3artifact-1.0.0.pom +++ b/archiva-core/src/test/maven-1.x-repository/test/poms/relocated-v3artifact-1.0.0.pom @@ -1,27 +1,27 @@ -<project>
- <pomVersion>3</pomVersion>
- <artifactId>relocated-v3artifact</artifactId>
- <groupId>test</groupId>
- <currentVersion>1.0.0</currentVersion>
- <dependencies>
- <dependency>
- <groupId>groupId</groupId>
- <artifactId>artifactId</artifactId>
- <version>version</version>
- </dependency>
- <dependency>
- <groupId>groupId</groupId>
- <artifactId>test-artifactId</artifactId>
- <version>version</version>
- <properties>
- <scope>test</scope>
- </properties>
- </dependency>
- </dependencies>
- <repository>
- <connection>scm:cvs:ext:${maven.username}@localhost:/home/cvs</connection>
- </repository>
- <properties>
- <relocated.groupId>relocated-test</relocated.groupId>
- </properties>
-</project>
\ No newline at end of file +<project> + <pomVersion>3</pomVersion> + <artifactId>relocated-v3artifact</artifactId> + <groupId>test</groupId> + <currentVersion>1.0.0</currentVersion> + <dependencies> + <dependency> + <groupId>groupId</groupId> + <artifactId>artifactId</artifactId> + <version>version</version> + </dependency> + <dependency> + <groupId>groupId</groupId> + <artifactId>test-artifactId</artifactId> + <version>version</version> + <properties> + <scope>test</scope> + </properties> + </dependency> + </dependencies> + <repository> + <connection>scm:cvs:ext:${maven.username}@localhost:/home/cvs</connection> + </repository> + <properties> + <relocated.groupId>relocated-test</relocated.groupId> + </properties> +</project> |