Skip to content

Commit

Permalink
add trace
Browse files Browse the repository at this point in the history
  • Loading branch information
apupier committed Jan 30, 2025
1 parent a749303 commit 2d5b7b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/task/CamelJBangTaskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,18 @@ export class CamelJBangTaskProvider implements TaskProvider {
private getRedHatMavenRepository(): string {
const camelVersion = this.getCamelVersion();
if (camelVersion.includes('redhat')) {
console.log('it is a red hat version.');
const url = workspace.getConfiguration().get('camel.debugAdapter.RedHatMavenRepository') as string;
const reposPlaceholder = this.getCamelGlobalRepos();
if (url) {
console.log('Red Hat Maven GA repository configured');
const camelVersion = workspace.getConfiguration().get('camel.debugAdapter.CamelVersion') as string;
const camelJbangCliVersion = this.getCamelJBangCLIVersion();
// Special handling to try to improve workarounds for https://issues.apache.org/jira/browse/CAMEL-21283
if (camelVersion.startsWith('4.8.0')) {
console.log('cmel version stratting with 4.8.0');
if (camelJbangCliVersion?.startsWith('4.8.0')) {
console.log('all versions starting with 4.8.0');
// In case Camel Jbang 4.8.0 and Camel productized version with 4.8.0 - it should work with --repository
return `--repository=${reposPlaceholder}${url}`;
} else {
Expand All @@ -268,12 +272,15 @@ export class CamelJBangTaskProvider implements TaskProvider {
return '';
}
} else {
console.log('camel version not starting with 4.8.0');
return `--repos=${reposPlaceholder}${url}`;
}
} else {
console.log('No Red Hat Maven GA repository configured.');
return '';
}
} else {
console.log('it is not a red hat version.');
return '';
}
}
Expand Down

0 comments on commit 2d5b7b4

Please sign in to comment.