You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/02/12 19:37:01 UTC

[maven-indexer] branch fix-spring-examples created (now bf1df2b)

This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a change to branch fix-spring-examples
in repository https://gitbox.apache.org/repos/asf/maven-indexer.git.


      at bf1df2b  Fix Spring example

This branch includes the following new commits:

     new bf1df2b  Fix Spring example

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[maven-indexer] 01/01: Fix Spring example

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch fix-spring-examples
in repository https://gitbox.apache.org/repos/asf/maven-indexer.git

commit bf1df2bfba46120961aa3838ade15455d794a0b7
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Sat Feb 12 20:35:07 2022 +0100

    Fix Spring example
    
    Seems Spring example contained a typo since beginning:
    it uses "/" (slash) in context ID.
    
    Still, it worked before but not since commit
    019edb7ff87a505372ad4f469c1b2a6c9d4ae292 as
    Files.createTempDirectory fails if prefix contains
    path separator.
---
 .../apache/maven/index/examples/indexing/RepositoryIndexerFactory.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indexer-examples/indexer-examples-spring/src/main/java/org/apache/maven/index/examples/indexing/RepositoryIndexerFactory.java b/indexer-examples/indexer-examples-spring/src/main/java/org/apache/maven/index/examples/indexing/RepositoryIndexerFactory.java
index ad25623..313e9fb 100644
--- a/indexer-examples/indexer-examples-spring/src/main/java/org/apache/maven/index/examples/indexing/RepositoryIndexerFactory.java
+++ b/indexer-examples/indexer-examples-spring/src/main/java/org/apache/maven/index/examples/indexing/RepositoryIndexerFactory.java
@@ -65,7 +65,7 @@ public class RepositoryIndexerFactory
     private IndexingContext createIndexingContext( String repositoryId, File repositoryBasedir, File indexDir )
         throws IOException
     {
-        return getIndexer().createIndexingContext( repositoryId + "/ctx", repositoryId, repositoryBasedir, indexDir,
+        return getIndexer().createIndexingContext( repositoryId + "-ctx", repositoryId, repositoryBasedir, indexDir,
                                                    null, null, true,
                                                    // if context should be searched in non-targeted mode.
                                                    true, // if indexDirectory is known to contain (or should contain)