Added logger properties and fixed some bugs.
This commit is contained in:
		
							parent
							
								
									99b3043686
								
							
						
					
					
						commit
						76099ddc99
					
				
							
								
								
									
										2
									
								
								pom.xml
								
								
								
								
							
							
						
						
									
										2
									
								
								pom.xml
								
								
								
								
							| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
 | 
			
		||||
    <groupId>nl.andrewl</groupId>
 | 
			
		||||
    <artifactId>distribugit</artifactId>
 | 
			
		||||
    <version>1.1.0</version>
 | 
			
		||||
    <version>1.2.0</version>
 | 
			
		||||
 | 
			
		||||
    <properties>
 | 
			
		||||
        <maven.compiler.source>17</maven.compiler.source>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -103,12 +103,18 @@ public class DistribuGit {
 | 
			
		|||
		statusListener.messageReceived("Prepared temporary directory for repositories.");
 | 
			
		||||
		List<String> repositoryURIs;
 | 
			
		||||
		try {
 | 
			
		||||
			statusListener.messageReceived("Fetching repository URIs.");
 | 
			
		||||
			repositoryURIs = selector.getURIs();
 | 
			
		||||
		} catch (Exception e) {
 | 
			
		||||
			throw new IOException("Could not fetch repository URIs.", e);
 | 
			
		||||
		}
 | 
			
		||||
		if (repositoryURIs.isEmpty()) {
 | 
			
		||||
			statusListener.messageReceived("No repositories were found.");
 | 
			
		||||
			statusListener.progressUpdated(100f);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		try {
 | 
			
		||||
			stepsTotal = 3 * repositoryURIs.size();
 | 
			
		||||
			stepsTotal = (finalizationAction == null ? 2 : 3) * repositoryURIs.size();
 | 
			
		||||
			Map<String, Git> repos = downloadRepositories(repositoryURIs);
 | 
			
		||||
			applyActionToRepositories(repos, action);
 | 
			
		||||
			if (finalizationAction != null) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,34 @@
 | 
			
		|||
# SLF4J's SimpleLogger configuration file
 | 
			
		||||
# Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to System.err.
 | 
			
		||||
 | 
			
		||||
# Default logging detail level for all instances of SimpleLogger.
 | 
			
		||||
# Must be one of ("trace", "debug", "info", "warn", or "error").
 | 
			
		||||
# If not specified, defaults to "info".
 | 
			
		||||
org.slf4j.simpleLogger.defaultLogLevel=error
 | 
			
		||||
 | 
			
		||||
# Logging detail level for a SimpleLogger instance named "xxxxx".
 | 
			
		||||
# Must be one of ("trace", "debug", "info", "warn", or "error").
 | 
			
		||||
# If not specified, the default logging detail level is used.
 | 
			
		||||
#org.slf4j.simpleLogger.log.xxxxx=
 | 
			
		||||
 | 
			
		||||
# Set to true if you want the current date and time to be included in output messages.
 | 
			
		||||
# Default is false, and will output the number of milliseconds elapsed since startup.
 | 
			
		||||
#org.slf4j.simpleLogger.showDateTime=false
 | 
			
		||||
 | 
			
		||||
# The date and time format to be used in the output messages.
 | 
			
		||||
# The pattern describing the date and time format is the same that is used in java.text.SimpleDateFormat.
 | 
			
		||||
# If the format is not specified or is invalid, the default format is used.
 | 
			
		||||
# The default format is yyyy-MM-dd HH:mm:ss:SSS Z.
 | 
			
		||||
#org.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss:SSS Z
 | 
			
		||||
 | 
			
		||||
# Set to true if you want to output the current thread name.
 | 
			
		||||
# Defaults to true.
 | 
			
		||||
#org.slf4j.simpleLogger.showThreadName=true
 | 
			
		||||
 | 
			
		||||
# Set to true if you want the Logger instance name to be included in output messages.
 | 
			
		||||
# Defaults to true.
 | 
			
		||||
#org.slf4j.simpleLogger.showLogName=true
 | 
			
		||||
 | 
			
		||||
# Set to true if you want the last component of the name to be included in output messages.
 | 
			
		||||
# Defaults to false.
 | 
			
		||||
#org.slf4j.simpleLogger.showShortLogName=false
 | 
			
		||||
		Loading…
	
		Reference in New Issue