<commit_before>#
# 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.
#

BuildrPlus::Roles.role(:replicant_ee_client, :requires => [:role_replicant_shared, :soap]) do

  project.publish = BuildrPlus::Artifacts.replicant_client?

  if BuildrPlus::FeatureManager.activated?(:domgen)
    generators = []
    generators += [:imit_client_entity_ee]
    generators += [:ee_exceptions]
    generators += project.additional_domgen_generators
    Domgen::Build.define_generate_task(generators, :buildr_project => project) do |t|
      t.filter = Proc.new do |artifact_type, artifact|
        artifact_type != :exception || (artifact == artifact.data_module.repository.exception_by_name(artifact.data_module.repository.imit.invalid_session_exception))
      end
    end
  end

  compile.with BuildrPlus::Libs.ee_provided
  compile.with BuildrPlus::Libs.glassfish_embedded

  BuildrPlus::Roles.merge_projects_with_role(project.compile, :replicant_shared)
  BuildrPlus::Roles.merge_projects_with_role(project.compile, :soap_client)
  BuildrPlus::Roles.merge_projects_with_role(project.test, :replicant_qa_support)
  BuildrPlus::Roles.merge_projects_with_role(project.test, :soap_qa_support)

  test.with BuildrPlus::Libs.mockito

  package(:jar)
  package(:sources)

  check package(:jar), 'should contain generated source files' do
    it.should contain("#{p.group_as_path}/client/net/#{p.name_as_class}EeDataLoaderServiceImpl.class")
    it.should contain("#{p.group_as_path}/client/net/#{p.name_as_class}EeDataLoaderServiceImpl.java")
  end if BuildrPlus::Domgen.enforce_package_name?
end
<commit_msg>WebPoller required for ee client<commit_after>#
# 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.
#

BuildrPlus::Roles.role(:replicant_ee_client, :requires => [:role_replicant_shared, :soap]) do

  project.publish = BuildrPlus::Artifacts.replicant_client?

  if BuildrPlus::FeatureManager.activated?(:domgen)
    generators = []
    generators += [:imit_client_entity_ee]
    generators += [:ee_exceptions]
    generators += project.additional_domgen_generators
    Domgen::Build.define_generate_task(generators, :buildr_project => project) do |t|
      t.filter = Proc.new do |artifact_type, artifact|
        artifact_type != :exception || (artifact == artifact.data_module.repository.exception_by_name(artifact.data_module.repository.imit.invalid_session_exception))
      end
    end
  end

  compile.with BuildrPlus::Libs.ee_provided
  compile.with BuildrPlus::Libs.gwt_webpoller
  compile.with BuildrPlus::Libs.glassfish_embedded

  BuildrPlus::Roles.merge_projects_with_role(project.compile, :replicant_shared)
  BuildrPlus::Roles.merge_projects_with_role(project.compile, :soap_client)
  BuildrPlus::Roles.merge_projects_with_role(project.test, :replicant_qa_support)
  BuildrPlus::Roles.merge_projects_with_role(project.test, :soap_qa_support)

  test.with BuildrPlus::Libs.mockito

  package(:jar)
  package(:sources)

  check package(:jar), 'should contain generated source files' do
    it.should contain("#{p.group_as_path}/client/net/#{p.name_as_class}EeDataLoaderServiceImpl.class")
    it.should contain("#{p.group_as_path}/client/net/#{p.name_as_class}EeDataLoaderServiceImpl.java")
  end if BuildrPlus::Domgen.enforce_package_name?
end

{'fraction_non_alphanumeric': 0.10163082013708344, 'fraction_numerical': 0.0018908059560387616, 'mean_word_length': 5.5816485225505446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '360308', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1295, 'n_words': 294}