如何在SBT中配置Maven-war-plugin

时间:2019-03-13 10:44:36

标签: sbt maven-war-plugin

我想使用maven-war-plugin从我的战争文件中排除一些文件。我知道如何在pom文件中执行此操作:

--List of tables
SELECT * FROM sys.tables

--List of Columns
SELECT * FROM sys.columns

--List of Columns Tables joined
SELECT tbl.[name] AS TableName, clm.[name] AS ColumnName FROM sys.tables as tbl INNER JOIN sys.columns as clm ON tbl.[object_id] = clm.[object_id]



-You can check with the column name if the column exist in all tables 
USE MyDataBase
DECLARE @TableCount INT
DECLARE @FoundTables INT
SET @TableCount = ( SELECT COUNT(*) FROM sys.tables)
SET @FoundTables = ( SELECT COUNT(DISTINCT(tbl.[name])) AS NumberOfTables FROM sys.tables as tbl INNER JOIN sys.columns as clm ON tbl.[object_id] = clm.[object_id] WHERE clm.[name] = 'YourColumnName')

IF @FoundTables = @TableCount
 BEGIN
   PRINT 'The column is present in all tables'
 END
ELSE
 BEGIN 
   PRINT 'The column is not present in all tables'
 END

但是我的项目使用的是sbt构建文件。我该如何在build.sbt中编写等效内容?

0 个答案:

没有答案